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

regulator: rc5t583: 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
2ea2583f 3f24bf70

+1 -3
+1 -3
drivers/regulator/rc5t583-regulator.c
··· 134 134 135 135 regs = devm_kzalloc(&pdev->dev, RC5T583_REGULATOR_MAX * 136 136 sizeof(struct rc5t583_regulator), GFP_KERNEL); 137 - if (!regs) { 138 - dev_err(&pdev->dev, "Memory allocation failed exiting..\n"); 137 + if (!regs) 139 138 return -ENOMEM; 140 - } 141 139 142 140 143 141 for (id = 0; id < RC5T583_REGULATOR_MAX; ++id) {