Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

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: 8c8709334cec ("[PATCH] ppc32: Remove CONFIG_PMAC_PBOOK").
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Michael 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: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>

authored by

YueHaibing and committed by
Bartlomiej Zolnierkiewicz
8e71fa5e 5766ba31

+1 -2
+1 -2
drivers/video/fbdev/chipsfb.c
··· 349 349 static int chipsfb_pci_init(struct pci_dev *dp, const struct pci_device_id *ent) 350 350 { 351 351 struct fb_info *p; 352 - unsigned long addr, size; 352 + unsigned long addr; 353 353 unsigned short cmd; 354 354 int rc = -ENODEV; 355 355 ··· 361 361 if ((dp->resource[0].flags & IORESOURCE_MEM) == 0) 362 362 goto err_disable; 363 363 addr = pci_resource_start(dp, 0); 364 - size = pci_resource_len(dp, 0); 365 364 if (addr == 0) 366 365 goto err_disable; 367 366