From: Markus Elfring Date: Fri, 9 Mar 2018 08:00:59 +0000 (+0100) Subject: mfd: tps65910: Delete an error message for a failed memory allocation in tps65910_par... X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=93e879ef0e168b4a4cf2ff316184ae2f250aa6c3;p=linux.git mfd: tps65910: Delete an error message for a failed memory allocation in tps65910_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: Markus Elfring Signed-off-by: Lee Jones --- diff --git a/drivers/mfd/tps65910.c b/drivers/mfd/tps65910.c index 8263605f6d2fa..555bd394efc31 100644 --- a/drivers/mfd/tps65910.c +++ b/drivers/mfd/tps65910.c @@ -395,10 +395,8 @@ static struct tps65910_board *tps65910_parse_dt(struct i2c_client *client, board_info = devm_kzalloc(&client->dev, sizeof(*board_info), GFP_KERNEL); - if (!board_info) { - dev_err(&client->dev, "Failed to allocate pdata\n"); + if (!board_info) return NULL; - } ret = of_property_read_u32(np, "ti,vmbch-threshold", &prop); if (!ret)