Staging: fbtft: Remove unnecessary 'out of memory' message.
authorDilek Uzulmez <dilekuzulmez@gmail.com>
Mon, 2 Mar 2015 20:56:53 +0000 (22:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Mar 2015 17:54:25 +0000 (09:54 -0800)
This patch fixes checkpatch.pl warning in file fbtft-core.c
WARNING: Possible unnecessary 'out of memory' message

Signed-off-by: Dilek Uzulmez <dilekuzulmez@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fbtft/fbtft-core.c

index 9ce929d0e5c2bc56364dd4c324600f2099bd57b5..3c4769aab6781a1d218ba1748fc379b70172bbb8 100644 (file)
@@ -302,12 +302,8 @@ void fbtft_register_backlight(struct fbtft_par *par)
 
        bl_ops = devm_kzalloc(par->info->device, sizeof(struct backlight_ops),
                                GFP_KERNEL);
-       if (!bl_ops) {
-               dev_err(par->info->device,
-                       "%s: could not allocate memeory for backlight operations.\n",
-                       __func__);
+       if (!bl_ops)
                return;
-       }
 
        bl_ops->get_brightness = fbtft_backlight_get_brightness;
        bl_ops->update_status = fbtft_backlight_update_status;