summaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2018-03-08 15:30:54 +0100
committerLee Jones <lee.jones@linaro.org>2018-05-16 09:21:48 +0100
commitfeafdffa47bb03e9a145f4a65fc2a8a25a35aa6c (patch)
tree14fe777342651197e712df806a6a83924b367722 /drivers/mfd
parent8a232f0b0d26725e2e57a1fc6fca250089f6597d (diff)
downloadop-kernel-dev-feafdffa47bb03e9a145f4a65fc2a8a25a35aa6c.zip
op-kernel-dev-feafdffa47bb03e9a145f4a65fc2a8a25a35aa6c.tar.gz
mfd: tps6586x: Delete an error message for a failed memory allocation in tps6586x_parse_dt()
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/tps6586x.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mfd/tps6586x.c b/drivers/mfd/tps6586x.c
index 5628a6b..b893797 100644
--- a/drivers/mfd/tps6586x.c
+++ b/drivers/mfd/tps6586x.c
@@ -423,10 +423,8 @@ static struct tps6586x_platform_data *tps6586x_parse_dt(struct i2c_client *clien
struct tps6586x_platform_data *pdata;
pdata = devm_kzalloc(&client->dev, sizeof(*pdata), GFP_KERNEL);
- if (!pdata) {
- dev_err(&client->dev, "Memory allocation failed\n");
+ if (!pdata)
return NULL;
- }
pdata->num_subdevs = 0;
pdata->subdevs = NULL;
OpenPOWER on IntegriCloud