mirror of https://github.com/torvalds/linux.git
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:
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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue