Commit 0fccfa7c authored by YueHaibing's avatar YueHaibing Committed by Kleber Sacilotto de Souza

fbdev: chipsfb: remove set but not used variable 'size'

BugLink: https://bugs.launchpad.net/bugs/1864773

[ Upstream commit 8e71fa5e ]

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/video/fbdev/chipsfb.c: In function 'chipsfb_pci_init':
drivers/video/fbdev/chipsfb.c:352:22: warning:
 variable 'size' set but not used [-Wunused-but-set-variable]

Fixes: 8c870933 ("[PATCH] ppc32: Remove CONFIG_PMAC_PBOOK").
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Acked-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Christophe Leroy <christophe.leroy@c-s.fr>
[b.zolnierkie: minor commit summary and description fixups]
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarKhalid Elmously <khalid.elmously@canonical.com>
Signed-off-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
parent 01d5fb81
...@@ -350,7 +350,7 @@ static void init_chips(struct fb_info *p, unsigned long addr) ...@@ -350,7 +350,7 @@ static void init_chips(struct fb_info *p, unsigned long addr)
static int chipsfb_pci_init(struct pci_dev *dp, const struct pci_device_id *ent) static int chipsfb_pci_init(struct pci_dev *dp, const struct pci_device_id *ent)
{ {
struct fb_info *p; struct fb_info *p;
unsigned long addr, size; unsigned long addr;
unsigned short cmd; unsigned short cmd;
int rc = -ENODEV; int rc = -ENODEV;
...@@ -362,7 +362,6 @@ static int chipsfb_pci_init(struct pci_dev *dp, const struct pci_device_id *ent) ...@@ -362,7 +362,6 @@ static int chipsfb_pci_init(struct pci_dev *dp, const struct pci_device_id *ent)
if ((dp->resource[0].flags & IORESOURCE_MEM) == 0) if ((dp->resource[0].flags & IORESOURCE_MEM) == 0)
goto err_disable; goto err_disable;
addr = pci_resource_start(dp, 0); addr = pci_resource_start(dp, 0);
size = pci_resource_len(dp, 0);
if (addr == 0) if (addr == 0)
goto err_disable; goto err_disable;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment