diff options
| author | Markus Elfring <elfring@users.sourceforge.net> | 2018-03-09 03:00:59 -0500 |
|---|---|---|
| committer | Lee Jones <lee.jones@linaro.org> | 2018-05-16 04:21:48 -0400 |
| commit | 93e879ef0e168b4a4cf2ff316184ae2f250aa6c3 (patch) | |
| tree | 7c5e8038e0b4d0a651ee5fb741e80c24e89b2066 | |
| parent | feafdffa47bb03e9a145f4a65fc2a8a25a35aa6c (diff) | |
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 <elfring@users.sourceforge.net>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
| -rw-r--r-- | drivers/mfd/tps65910.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mfd/tps65910.c b/drivers/mfd/tps65910.c index 8263605f6d2f..555bd394efc3 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, | |||
| 395 | 395 | ||
| 396 | board_info = devm_kzalloc(&client->dev, sizeof(*board_info), | 396 | board_info = devm_kzalloc(&client->dev, sizeof(*board_info), |
| 397 | GFP_KERNEL); | 397 | GFP_KERNEL); |
| 398 | if (!board_info) { | 398 | if (!board_info) |
| 399 | dev_err(&client->dev, "Failed to allocate pdata\n"); | ||
| 400 | return NULL; | 399 | return NULL; |
| 401 | } | ||
| 402 | 400 | ||
| 403 | ret = of_property_read_u32(np, "ti,vmbch-threshold", &prop); | 401 | ret = of_property_read_u32(np, "ti,vmbch-threshold", &prop); |
| 404 | if (!ret) | 402 | if (!ret) |
