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

regulator: tps6524x: Remove redundant error message

kzalloc prints its own OOM message upon failure.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>

authored by

Sachin Kamat and committed by
Mark Brown
516add1d 38dbfb59

+2 -3
+2 -3
drivers/regulator/tps6524x-regulator.c
··· 593 593 } 594 594 595 595 hw = devm_kzalloc(&spi->dev, sizeof(struct tps6524x), GFP_KERNEL); 596 - if (!hw) { 597 - dev_err(dev, "cannot allocate regulator private data\n"); 596 + if (!hw) 598 597 return -ENOMEM; 599 - } 598 + 600 599 spi_set_drvdata(spi, hw); 601 600 602 601 memset(hw, 0, sizeof(struct tps6524x));