summaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2018-03-08 15:25:58 +0100
committerLee Jones <lee.jones@linaro.org>2018-05-16 10:21:48 +0200
commit8a232f0b0d26725e2e57a1fc6fca250089f6597d (patch)
tree549c6184f9df61ddd975a4c4a7d6b0707bbe3b1b /drivers/mfd
parentmfd: ti_am335x_tscadc: Delete an error message for a failed memory allocation... (diff)
downloadlinux-8a232f0b0d26725e2e57a1fc6fca250089f6597d.tar.xz
linux-8a232f0b0d26725e2e57a1fc6fca250089f6597d.zip
mfd: tps65090: Delete an error message for a failed memory allocation in tps65090_i2c_probe()
Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/tps65090.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mfd/tps65090.c b/drivers/mfd/tps65090.c
index d7ec318c40c3..f13e4cd06e89 100644
--- a/drivers/mfd/tps65090.c
+++ b/drivers/mfd/tps65090.c
@@ -192,10 +192,8 @@ static int tps65090_i2c_probe(struct i2c_client *client,
irq_base = pdata->irq_base;
tps65090 = devm_kzalloc(&client->dev, sizeof(*tps65090), GFP_KERNEL);
- if (!tps65090) {
- dev_err(&client->dev, "mem alloc for tps65090 failed\n");
+ if (!tps65090)
return -ENOMEM;
- }
tps65090->dev = &client->dev;
i2c_set_clientdata(client, tps65090);