[Bridge] [PATCH] bridge: Use PTR_ERR_OR_ZERO instead if(IS_ERR(...)) + PTR_ERR

Jakub Kicinski kuba at kernel.org
Fri Jan 22 17:33:20 UTC 2021


On Fri, 22 Jan 2021 17:32:13 +0800 Jiapeng Zhong wrote:
> coccicheck suggested using PTR_ERR_OR_ZERO() and looking at the code.
> 
> Fix the following coccicheck warnings:
> 
> ./net/bridge/br_multicast.c:1295:7-13: WARNING: PTR_ERR_OR_ZERO can be
> used.
> 
> Reported-by: Abaci <abaci at linux.alibaba.com>
> Signed-off-by: Jiapeng Zhong <abaci-bugfix at linux.alibaba.com>

You need to CC netdev


More information about the Bridge mailing list