Commit 7672c840 authored by Markus Elfring's avatar Markus Elfring Committed by Lee Jones

mfd: tps80031: Delete an error message for a failed memory allocation in tps80031_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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 71bc4f1d
...@@ -431,10 +431,8 @@ static int tps80031_probe(struct i2c_client *client, ...@@ -431,10 +431,8 @@ static int tps80031_probe(struct i2c_client *client,
} }
tps80031 = devm_kzalloc(&client->dev, sizeof(*tps80031), GFP_KERNEL); tps80031 = devm_kzalloc(&client->dev, sizeof(*tps80031), GFP_KERNEL);
if (!tps80031) { if (!tps80031)
dev_err(&client->dev, "Malloc failed for tps80031\n");
return -ENOMEM; return -ENOMEM;
}
for (i = 0; i < TPS80031_NUM_SLAVES; i++) { for (i = 0; i < TPS80031_NUM_SLAVES; i++) {
if (tps80031_slave_address[i] == client->addr) if (tps80031_slave_address[i] == client->addr)
......
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