OSDN Git Service

Staging: fbtft: Remove unnecessary 'out of memory' message.
authorDilek Uzulmez <dilekuzulmez@gmail.com>
Mon, 2 Mar 2015 21:28:14 +0000 (23:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Mar 2015 17:54:26 +0000 (09:54 -0800)
This patch fixes checkpatch.pl warning in file fb_ssd1351.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/fb_ssd1351.c

index b59120c..fd492b4 100644 (file)
@@ -218,12 +218,8 @@ static void register_onboard_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 memory for backlight operations.\n",
-                       __func__);
+       if (!bl_ops)
                return;
-       }
 
        bl_ops->update_status = update_onboard_backlight;
        bl_props.type = BACKLIGHT_RAW;