mfd: sec: Remove unnecessary out of memory message
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Thu, 26 Feb 2015 09:13:51 +0000 (10:13 +0100)
committerLee Jones <lee.jones@linaro.org>
Tue, 3 Mar 2015 17:30:26 +0000 (17:30 +0000)
There is no need to print additional ENOMEM message for
sec_platform_data allocation failure.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/sec-core.c

index 423a2d3da4b2b747482891188efdbe85618538fa..2253d44e631c874434bd5d84eb1cc33ea2c4c68d 100644 (file)
@@ -267,10 +267,8 @@ static struct sec_platform_data *sec_pmic_i2c_parse_dt_pdata(
        struct sec_platform_data *pd;
 
        pd = devm_kzalloc(dev, sizeof(*pd), GFP_KERNEL);
-       if (!pd) {
-               dev_err(dev, "could not allocate memory for pdata\n");
+       if (!pd)
                return ERR_PTR(-ENOMEM);
-       }
 
        /*
         * ToDo: the 'wakeup' member in the platform data is more of a linux