Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Liao Yuanhong and committed by
Mark Brown
f6cc4140 c6871d56

-1
-1
drivers/regulator/tps6524x-regulator.c
··· 598 598 599 599 spi_set_drvdata(spi, hw); 600 600 601 - memset(hw, 0, sizeof(struct tps6524x)); 602 601 hw->dev = dev; 603 602 hw->spi = spi; 604 603 mutex_init(&hw->lock);