Skip to content

Commit f6cc414

Browse files
LiaoYuanhong-vivobroonie
authored andcommitted
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: Liao Yuanhong <liaoyuanhong@vivo.com> Link: https://patch.msgid.link/20250807123949.495193-1-liaoyuanhong@vivo.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent c6871d5 commit f6cc414

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/regulator/tps6524x-regulator.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,6 @@ static int pmic_probe(struct spi_device *spi)
598598

599599
spi_set_drvdata(spi, hw);
600600

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

0 commit comments

Comments
 (0)