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>
 
        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)