Commit 93e879ef authored by Markus Elfring's avatar Markus Elfring Committed by Lee Jones
Browse files

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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent feafdffa
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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)