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

regulator: fan53555: Remove redundant error message

kzalloc prints its own OOM message upon failure.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Yunfan Zhang <yfzhang@marvell.com>
Signed-off-by: Mark Brown <broonie@linaro.org>

authored by

Sachin Kamat and committed by
Mark Brown
df948bbf 145fe1e1

+2 -3
+2 -3
drivers/regulator/fan53555.c
··· 244 244 245 245 di = devm_kzalloc(&client->dev, sizeof(struct fan53555_device_info), 246 246 GFP_KERNEL); 247 - if (!di) { 248 - dev_err(&client->dev, "Failed to allocate device info data!\n"); 247 + if (!di) 249 248 return -ENOMEM; 250 - } 249 + 251 250 di->regmap = devm_regmap_init_i2c(client, &fan53555_regmap_config); 252 251 if (IS_ERR(di->regmap)) { 253 252 dev_err(&client->dev, "Failed to allocate regmap!\n");