mfd: tps65090: Delete an error message for a failed memory allocation in tps65090_i2c_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: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
Markus Elfring 2018-03-08 15:25:58 +01:00 committed by Lee Jones
parent a2e87fee55
commit 8a232f0b0d

View file

@ -192,10 +192,8 @@ static int tps65090_i2c_probe(struct i2c_client *client,
irq_base = pdata->irq_base; irq_base = pdata->irq_base;
tps65090 = devm_kzalloc(&client->dev, sizeof(*tps65090), GFP_KERNEL); tps65090 = devm_kzalloc(&client->dev, sizeof(*tps65090), GFP_KERNEL);
if (!tps65090) { if (!tps65090)
dev_err(&client->dev, "mem alloc for tps65090 failed\n");
return -ENOMEM; return -ENOMEM;
}
tps65090->dev = &client->dev; tps65090->dev = &client->dev;
i2c_set_clientdata(client, tps65090); i2c_set_clientdata(client, tps65090);