Commit feafdffa authored by Markus Elfring's avatar Markus Elfring Committed by Lee Jones

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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 8a232f0b
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment