Merge branch 'parisc-4.9-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller...
[cascardo/linux.git] / drivers / mfd / ab3100-otp.c
index f391c5f..55b207a 100644 (file)
@@ -188,10 +188,9 @@ static int __init ab3100_otp_probe(struct platform_device *pdev)
        int i;
 
        otp = devm_kzalloc(&pdev->dev, sizeof(struct ab3100_otp), GFP_KERNEL);
-       if (!otp) {
-               dev_err(&pdev->dev, "could not allocate AB3100 OTP device\n");
+       if (!otp)
                return -ENOMEM;
-       }
+
        otp->dev = &pdev->dev;
 
        /* Replace platform data coming in with a local struct */