[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20171017113349.mee6ktysujsui7rj@mwanda>
Date: Tue, 17 Oct 2017 14:33:49 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: Christophe JAILLET <christophe.jaillet@...adoo.fr>
Cc: b.zolnierkie@...sung.com, tj@...nel.org,
dri-devel@...ts.freedesktop.org, linux-fbdev@...r.kernel.org,
linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: Re: [PATCH 6/8] video: fbdev: au1200fb: Remove some dead code
On Mon, Oct 16, 2017 at 09:04:52PM +0200, Christophe JAILLET wrote:
> There is no need to shut gcc up. It should not complain.
> Axe 'fbdev', it is never used in this function.
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@...adoo.fr>
> ---
> drivers/video/fbdev/au1200fb.c | 6 ------
> 1 file changed, 6 deletions(-)
>
> diff --git a/drivers/video/fbdev/au1200fb.c b/drivers/video/fbdev/au1200fb.c
> index e531543bc707..970ce761ff89 100644
> --- a/drivers/video/fbdev/au1200fb.c
> +++ b/drivers/video/fbdev/au1200fb.c
> @@ -1667,10 +1667,6 @@ static int au1200fb_drv_probe(struct platform_device *dev)
> printk(DRIVER_NAME ": Panel %d %s\n", panel_index, panel->name);
> printk(DRIVER_NAME ": Win %d %s\n", window_index, win->name);
>
> - /* shut gcc up */
> - ret = 0;
Heh... It looks like they were deliberately silencing the warning about
the bug you fixed in patch 2/8. :P
regards,
dan carpenter
Powered by blists - more mailing lists