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

regulator: wm831x-isink: 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
d718debc 5730aa57

+1 -3
+1 -3
drivers/regulator/wm831x-isink.c
··· 165 165 166 166 isink = devm_kzalloc(&pdev->dev, sizeof(struct wm831x_isink), 167 167 GFP_KERNEL); 168 - if (isink == NULL) { 169 - dev_err(&pdev->dev, "Unable to allocate private data\n"); 168 + if (!isink) 170 169 return -ENOMEM; 171 - } 172 170 173 171 isink->wm831x = wm831x; 174 172