Commit 4374b20c authored by Lee Jones's avatar Lee Jones

mfd: aat2870-core: Remove unnecessary 'out of memory' message

WARNING: Possible unnecessary 'out of memory' message
+       if (!aat2870) {
+               dev_err(&client->dev,

total: 0 errors, 1 warnings, 524 lines checked
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent f90dff44
...@@ -373,11 +373,8 @@ static int aat2870_i2c_probe(struct i2c_client *client, ...@@ -373,11 +373,8 @@ static int aat2870_i2c_probe(struct i2c_client *client,
aat2870 = devm_kzalloc(&client->dev, sizeof(struct aat2870_data), aat2870 = devm_kzalloc(&client->dev, sizeof(struct aat2870_data),
GFP_KERNEL); GFP_KERNEL);
if (!aat2870) { if (!aat2870)
dev_err(&client->dev,
"Failed to allocate memory for aat2870\n");
return -ENOMEM; return -ENOMEM;
}
aat2870->dev = &client->dev; aat2870->dev = &client->dev;
dev_set_drvdata(aat2870->dev, aat2870); dev_set_drvdata(aat2870->dev, aat2870);
......
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