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

regulator: act8865: 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
5ee77ef2 0079eb53

+1 -4
+1 -4
drivers/regulator/act8865-regulator.c
··· 228 228 pdata->regulators = devm_kzalloc(dev, 229 229 sizeof(struct act8865_regulator_data) * 230 230 ARRAY_SIZE(act8865_matches), GFP_KERNEL); 231 - if (!pdata->regulators) { 232 - dev_err(dev, "%s: failed to allocate act8865 registor\n", 233 - __func__); 231 + if (!pdata->regulators) 234 232 return -ENOMEM; 235 - } 236 233 237 234 pdata->num_regulators = matched; 238 235 regulator = pdata->regulators;