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

mfd: si476x-i2c: Delete an error message for a failed memory allocation in si476x_core_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 6271299d
...@@ -697,11 +697,9 @@ static int si476x_core_probe(struct i2c_client *client, ...@@ -697,11 +697,9 @@ static int si476x_core_probe(struct i2c_client *client,
int cell_num; int cell_num;
core = devm_kzalloc(&client->dev, sizeof(*core), GFP_KERNEL); core = devm_kzalloc(&client->dev, sizeof(*core), GFP_KERNEL);
if (!core) { if (!core)
dev_err(&client->dev,
"failed to allocate 'struct si476x_core'\n");
return -ENOMEM; return -ENOMEM;
}
core->client = client; core->client = client;
core->regmap = devm_regmap_init_si476x(core); core->regmap = devm_regmap_init_si476x(core);
......
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