From: YueHaibing <yuehaibing@huawei.com> To: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>, Andrew Morton <akpm@linux-foundation.org>, Stephen Rothwell <sfr@canb.auug.org.au>, Kees Cook <keescook@chromium.org>, Ira Weiny <ira.weiny@intel.com> Cc: kernel-janitors@vger.kernel.org, linux-fbdev@vger.kernel.org, YueHaibing <yuehaibing@huawei.com>, dri-devel@lists.freedesktop.org Subject: [PATCH -next] video: fbdev: remove set but not used variable 'size' Date: Sat, 30 Mar 2019 02:26:26 +0000 [thread overview] Message-ID: <20190330022626.97340-1-yuehaibing@huawei.com> (raw) Fixes gcc '-Wunused-but-set-variable' warning: drivers/video/fbdev/pvr2fb.c: In function 'pvr2fb_init': drivers/video/fbdev/pvr2fb.c:1074:6: warning: variable 'size' set but not used [-Wunused-but-set-variable] It's not used since commit 9cd1c6743454 ("pvr2fb: Fix oops when pseudo_palette is written") Signed-off-by: YueHaibing <yuehaibing@huawei.com> --- drivers/video/fbdev/pvr2fb.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/video/fbdev/pvr2fb.c b/drivers/video/fbdev/pvr2fb.c index 41390c8e0f67..4e4d6a0df978 100644 --- a/drivers/video/fbdev/pvr2fb.c +++ b/drivers/video/fbdev/pvr2fb.c @@ -1071,7 +1071,6 @@ static struct pvr2_board { static int __init pvr2fb_init(void) { int i, ret = -ENODEV; - int size; #ifndef MODULE char *option = NULL; @@ -1080,7 +1079,6 @@ static int __init pvr2fb_init(void) return -ENODEV; pvr2fb_setup(option); #endif - size = sizeof(struct fb_info) + sizeof(struct pvr2fb_par) + 16 * sizeof(u32); fb_info = framebuffer_alloc(sizeof(struct pvr2fb_par), NULL);
WARNING: multiple messages have this Message-ID (diff)
From: YueHaibing <yuehaibing@huawei.com> To: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>, Andrew Morton <akpm@linux-foundation.org>, Stephen Rothwell <sfr@canb.auug.org.au>, Kees Cook <keescook@chromium.org>, Ira Weiny <ira.weiny@intel.com> Cc: kernel-janitors@vger.kernel.org, linux-fbdev@vger.kernel.org, YueHaibing <yuehaibing@huawei.com>, dri-devel@lists.freedesktop.org Subject: [PATCH -next] video: fbdev: remove set but not used variable 'size' Date: Sat, 30 Mar 2019 02:26:26 +0000 [thread overview] Message-ID: <20190330022626.97340-1-yuehaibing@huawei.com> (raw) Fixes gcc '-Wunused-but-set-variable' warning: drivers/video/fbdev/pvr2fb.c: In function 'pvr2fb_init': drivers/video/fbdev/pvr2fb.c:1074:6: warning: variable 'size' set but not used [-Wunused-but-set-variable] It's not used since commit 9cd1c6743454 ("pvr2fb: Fix oops when pseudo_palette is written") Signed-off-by: YueHaibing <yuehaibing@huawei.com> --- drivers/video/fbdev/pvr2fb.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/video/fbdev/pvr2fb.c b/drivers/video/fbdev/pvr2fb.c index 41390c8e0f67..4e4d6a0df978 100644 --- a/drivers/video/fbdev/pvr2fb.c +++ b/drivers/video/fbdev/pvr2fb.c @@ -1071,7 +1071,6 @@ static struct pvr2_board { static int __init pvr2fb_init(void) { int i, ret = -ENODEV; - int size; #ifndef MODULE char *option = NULL; @@ -1080,7 +1079,6 @@ static int __init pvr2fb_init(void) return -ENODEV; pvr2fb_setup(option); #endif - size = sizeof(struct fb_info) + sizeof(struct pvr2fb_par) + 16 * sizeof(u32); fb_info = framebuffer_alloc(sizeof(struct pvr2fb_par), NULL); _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
next reply other threads:[~2019-03-30 2:26 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <CGME20190330021509epcas4p47a2e10cc5ad02812441a3eae3814a950@epcas4p4.samsung.com> 2019-03-30 2:26 ` YueHaibing [this message] 2019-03-30 2:26 ` [PATCH -next] video: fbdev: remove set but not used variable 'size' YueHaibing 2019-04-11 15:45 ` Bartlomiej Zolnierkiewicz 2019-04-11 15:45 ` Bartlomiej Zolnierkiewicz
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20190330022626.97340-1-yuehaibing@huawei.com \ --to=yuehaibing@huawei.com \ --cc=akpm@linux-foundation.org \ --cc=b.zolnierkie@samsung.com \ --cc=dri-devel@lists.freedesktop.org \ --cc=ira.weiny@intel.com \ --cc=keescook@chromium.org \ --cc=kernel-janitors@vger.kernel.org \ --cc=linux-fbdev@vger.kernel.org \ --cc=sfr@canb.auug.org.au \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.