OSDN Git Service

fbdev: chipsfb: remove set but not used variable 'size'
authorYueHaibing <yuehaibing@huawei.com>
Fri, 8 Feb 2019 18:24:45 +0000 (19:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jan 2020 09:21:39 +0000 (10:21 +0100)
commitd770aa5b6bbf69ba3f86f1bb30af5cd0104bc1e2
treeddcadcb36c4dcc13783293414b7b1bef15497f28
parent6ef64386c92cfb1fa756adbb4375c94154b74bce
fbdev: chipsfb: remove set but not used variable 'size'

[ Upstream commit 8e71fa5e4d86bedfd26df85381d65d6b4c860020 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/video/fbdev/chipsfb.c