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

regulator: ti-abb: 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
8bad62cc 0ab5c85d

+3 -8
+3 -8
drivers/regulator/ti-abb-regulator.c
··· 533 533 num_entries /= num_values; 534 534 535 535 info = devm_kzalloc(dev, sizeof(*info) * num_entries, GFP_KERNEL); 536 - if (!info) { 537 - dev_err(dev, "Can't allocate info table for '%s' property\n", 538 - pname); 536 + if (!info) 539 537 return -ENOMEM; 540 - } 538 + 541 539 abb->info = info; 542 540 543 541 volt_table = devm_kzalloc(dev, sizeof(unsigned int) * num_entries, 544 542 GFP_KERNEL); 545 - if (!volt_table) { 546 - dev_err(dev, "Can't allocate voltage table for '%s' property\n", 547 - pname); 543 + if (!volt_table) 548 544 return -ENOMEM; 549 - } 550 545 551 546 abb->rdesc.n_voltages = num_entries; 552 547 abb->rdesc.volt_table = volt_table;