staging: sm750fb: lynxfb_pci_remove: remove unused variable
authorMike Rapoport <mike.rapoport@gmail.com>
Sun, 17 Jan 2016 17:59:51 +0000 (19:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 02:50:53 +0000 (18:50 -0800)
The par variable in lynxfb_pci_remove is only assigned a value and never
used afterwards. Remove it.

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

index 7eb3868819642c2a46a56304e7cf5f195b31b13b..6ed4478ed65add75bd98fbfc80a0824614adfde5 100644 (file)
@@ -1138,7 +1138,6 @@ static void lynxfb_pci_remove(struct pci_dev *pdev)
 {
        struct fb_info *info;
        struct sm750_dev *sm750_dev;
-       struct lynxfb_par *par;
        int cnt;
 
        cnt = 2;
@@ -1148,7 +1147,6 @@ static void lynxfb_pci_remove(struct pci_dev *pdev)
                info = sm750_dev->fbinfo[cnt];
                if (!info)
                        continue;
-               par = info->par;
 
                unregister_framebuffer(info);
                /* release frame buffer */