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

regulator: max8973: 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
21024dee 38dbfb59

+1 -3
+1 -3
drivers/regulator/max8973-regulator.c
··· 379 379 } 380 380 381 381 max = devm_kzalloc(&client->dev, sizeof(*max), GFP_KERNEL); 382 - if (!max) { 383 - dev_err(&client->dev, "Memory allocation for max failed\n"); 382 + if (!max) 384 383 return -ENOMEM; 385 - } 386 384 387 385 max->regmap = devm_regmap_init_i2c(client, &max8973_regmap_config); 388 386 if (IS_ERR(max->regmap)) {