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

regulator: tps6507x: 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
fe23ce08 aaacb0e9

+2 -6
+2 -6
drivers/regulator/tps6507x-regulator.c
··· 380 380 381 381 tps_board = devm_kzalloc(&pdev->dev, sizeof(*tps_board), 382 382 GFP_KERNEL); 383 - if (!tps_board) { 384 - dev_err(&pdev->dev, "Failure to alloc pdata for regulators.\n"); 383 + if (!tps_board) 385 384 return NULL; 386 - } 387 385 388 386 regulators = of_get_child_by_name(np, "regulators"); 389 387 if (!regulators) { ··· 404 406 405 407 reg_data = devm_kzalloc(&pdev->dev, (sizeof(struct regulator_init_data) 406 408 * TPS6507X_NUM_REGULATOR), GFP_KERNEL); 407 - if (!reg_data) { 408 - dev_err(&pdev->dev, "Failure to alloc init data for regulators.\n"); 409 + if (!reg_data) 409 410 return NULL; 410 - } 411 411 412 412 tps_board->tps6507x_pmic_init_data = reg_data; 413 413