[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20230518122047.GK404509@google.com>
Date: Thu, 18 May 2023 13:20:47 +0100
From: Lee Jones <lee@...nel.org>
To: Yang Li <yang.lee@...ux.alibaba.com>
Cc: pavel@....cz, linux-leds@...r.kernel.org,
linux-kernel@...r.kernel.org, Abaci Robot <abaci@...ux.alibaba.com>
Subject: Re: [PATCH -next] leds: trigger: netdev: NULL check before dev_{put,
hold}
On Thu, 11 May 2023, Yang Li wrote:
> The call netdev_{put, hold} of dev_{put, hold} will check NULL,
> so there is no need to check before using dev_{put, hold},
> remove it to silence the warnings:
>
> ./drivers/leds/trigger/ledtrig-netdev.c:291:3-10: WARNING: NULL check before dev_{put, hold} functions is not needed.
> ./drivers/leds/trigger/ledtrig-netdev.c:401:2-9: WARNING: NULL check before dev_{put, hold} functions is not needed.
>
> Reported-by: Abaci Robot <abaci@...ux.alibaba.com>
> Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4929
> Signed-off-by: Yang Li <yang.lee@...ux.alibaba.com>
> ---
> drivers/leds/trigger/ledtrig-netdev.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
Don't forget to run checkpatch.pl before submission.
WARNING: Reported-by: should be immediately followed by Closes: with a URL to the report
Fixed and applied, thanks.
--
Lee Jones [李琼斯]
Powered by blists - more mailing lists