Commit 93e879ef0e168b4a4cf2ff316184ae2f250aa6c3
Committed by
Lee Jones
1 parent
feafdffa47
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>
Showing 1 changed file with 1 additions and 3 deletions Side-by-side Diff
drivers/mfd/tps65910.c
... | ... | @@ -395,10 +395,8 @@ |
395 | 395 | |
396 | 396 | board_info = devm_kzalloc(&client->dev, sizeof(*board_info), |
397 | 397 | GFP_KERNEL); |
398 | - if (!board_info) { | |
399 | - dev_err(&client->dev, "Failed to allocate pdata\n"); | |
398 | + if (!board_info) | |
400 | 399 | return NULL; |
401 | - } | |
402 | 400 | |
403 | 401 | ret = of_property_read_u32(np, "ti,vmbch-threshold", &prop); |
404 | 402 | if (!ret) |