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

regulator: arizona-micsupp: 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
820cd31e f4a6c5b4

+1 -3
+1 -3
drivers/regulator/arizona-micsupp.c
··· 204 204 int ret; 205 205 206 206 micsupp = devm_kzalloc(&pdev->dev, sizeof(*micsupp), GFP_KERNEL); 207 - if (micsupp == NULL) { 208 - dev_err(&pdev->dev, "Unable to allocate private data\n"); 207 + if (!micsupp) 209 208 return -ENOMEM; 210 - } 211 209 212 210 micsupp->arizona = arizona; 213 211 INIT_WORK(&micsupp->check_cp_work, arizona_micsupp_check_cp);