Unverified Commit f6cc4140 authored by Liao Yuanhong's avatar Liao Yuanhong Committed by Mark Brown
Browse files

regulator: tps6524x: Remove unnecessary memset



devm_kzalloc() has already been initialized to full 0 space, there is no
need to use memset() to initialize again.

Signed-off-by: default avatarLiao Yuanhong <liaoyuanhong@vivo.com>
Link: https://patch.msgid.link/20250807123949.495193-1-liaoyuanhong@vivo.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent c6871d56
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -598,7 +598,6 @@ static int pmic_probe(struct spi_device *spi)

	spi_set_drvdata(spi, hw);

	memset(hw, 0, sizeof(struct tps6524x));
	hw->dev = dev;
	hw->spi = spi;
	mutex_init(&hw->lock);