mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 12:21:22 -05:00
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>
This commit is contained in:
committed by
Mark Brown
parent
c6871d56b5
commit
f6cc4140e1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user