[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <pre5tmzcfv4zwrbuksiacsm56qhmn76wa6xyni7piwivokogp7@nbo5zsnxwsut>
Date: Tue, 2 Jul 2024 14:11:53 +0300
From: Dmitry Baryshkov <dmitry.baryshkov@...aro.org>
To: Thorsten Blum <thorsten.blum@...lux.com>
Cc: maarten.lankhorst@...ux.intel.com, mripard@...nel.org,
tzimmermann@...e.de, airlied@...il.com, daniel@...ll.ch,
dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org
Subject: Re: [RESEND PATCH] drm/managed: Simplify if condition
On Mon, Jul 01, 2024 at 09:56:08PM GMT, Thorsten Blum wrote:
> The if condition !A || A && B can be simplified to !A || B.
>
> Fixes the following Coccinelle/coccicheck warning reported by
> excluded_middle.cocci:
>
> WARNING !A || A && B is equivalent to !A || B
>
> Compile-tested only.
>
> Acked-by: Thomas Zimmermann <tzimmermann@...e.de>
> Signed-off-by: Thorsten Blum <thorsten.blum@...lux.com>
> ---
> drivers/gpu/drm/drm_managed.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@...aro.org>
--
With best wishes
Dmitry
Powered by blists - more mailing lists