summaryrefslogtreecommitdiffstats
path: root/drivers/staging/fbtft
diff options
context:
space:
mode:
authorMike Rapoport2015-09-03 07:13:10 +0200
committerGreg Kroah-Hartman2015-09-13 03:24:35 +0200
commite7f506bd0e2db2cc67da6e16776cf54aeb827999 (patch)
treedcb89d61a97106f517cb2185ca192e27255fa5fd /drivers/staging/fbtft
parentstaging/fbtft : Remove FSF mailing address (diff)
downloadkernel-qcow2-linux-e7f506bd0e2db2cc67da6e16776cf54aeb827999.tar.gz
kernel-qcow2-linux-e7f506bd0e2db2cc67da6e16776cf54aeb827999.tar.xz
kernel-qcow2-linux-e7f506bd0e2db2cc67da6e16776cf54aeb827999.zip
staging: fbtft: remove unused bl_ops from fbtft_unregister_backlight
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>
Diffstat (limited to 'drivers/staging/fbtft')
-rw-r--r--drivers/staging/fbtft/fbtft-core.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/staging/fbtft/fbtft-core.c b/drivers/staging/fbtft/fbtft-core.c
index 63696fe3b59d..95aaf778fc8e 100644
--- a/drivers/staging/fbtft/fbtft-core.c
+++ b/drivers/staging/fbtft/fbtft-core.c
@@ -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;
}