staging: fbtft: remove unused bl_ops from fbtft_unregister_backlight
authorMike Rapoport <mike.rapoport@gmail.com>
Thu, 3 Sep 2015 05:13:10 +0000 (08:13 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 01:24:35 +0000 (18:24 -0700)
The only usage of bl_ops variable in fbtft_unregister_backlight function
was assigment of a value to that variable, therefore the assignment and
the variable itself can be safely removed

Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fbtft/fbtft-core.c

index 63696fe3b59d874f9f0ab900af2a60bb6b98eac6..95aaf778fc8eae92d244e1ec80d05561fa77127c 100644 (file)
@@ -266,14 +266,11 @@ static int fbtft_backlight_get_brightness(struct backlight_device *bd)
 
 void fbtft_unregister_backlight(struct fbtft_par *par)
 {
-       const struct backlight_ops *bl_ops;
-
        fbtft_par_dbg(DEBUG_BACKLIGHT, par, "%s()\n", __func__);
 
        if (par->info->bl_dev) {
                par->info->bl_dev->props.power = FB_BLANK_POWERDOWN;
                backlight_update_status(par->info->bl_dev);
-               bl_ops = par->info->bl_dev->ops;
                backlight_device_unregister(par->info->bl_dev);
                par->info->bl_dev = NULL;
        }