[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <648cd020-a275-ea0b-e0bf-ff064dde16b0@gmx.de>
Date: Fri, 11 Mar 2022 08:24:24 +0100
From: Helge Deller <deller@....de>
To: Haowen Bai <baihaowen@...zu.com>
Cc: linux-fbdev@...r.kernel.org, dri-devel@...ts.freedesktop.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] video: fbdev: fix warning comparing pointer to 0
On 3/11/22 03:56, Haowen Bai wrote:
> Fix the following coccicheck warning:
> drivers/video/fbdev/offb.c:415:13-14: WARNING comparing pointer to 0
>
> Signed-off-by: Haowen Bai <baihaowen@...zu.com>
applied.
Thanks!
Helge
> ---
> drivers/video/fbdev/offb.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/video/fbdev/offb.c b/drivers/video/fbdev/offb.c
> index 4501e84..afdb6aa 100644
> --- a/drivers/video/fbdev/offb.c
> +++ b/drivers/video/fbdev/offb.c
> @@ -412,7 +412,7 @@ static void __init offb_init_fb(const char *name,
>
> info = framebuffer_alloc(sizeof(u32) * 16, NULL);
>
> - if (info == 0) {
> + if (!info) {
> release_mem_region(res_start, res_size);
> return;
> }
Powered by blists - more mailing lists