Re: [PATCH] netdevsim: fix ptr_ret.cocci warnings

From: David Miller
Date: Wed Feb 05 2020 - 07:56:50 EST


From: kbuild test robot <lkp@xxxxxxxxx>
Date: Tue, 4 Feb 2020 22:22:02 +0800

> From: kbuild test robot <lkp@xxxxxxxxx>
>
> drivers/net/netdevsim/dev.c:937:1-3: WARNING: PTR_ERR_OR_ZERO can be used
>
>
> Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR
>
> Generated by: scripts/coccinelle/api/ptr_ret.cocci
>
> Fixes: 6556ff32f12d ("netdevsim: use IS_ERR instead of IS_ERR_OR_NULL for debugfs")
> CC: Taehee Yoo <ap420073@xxxxxxxxx>
> Signed-off-by: kbuild test robot <lkp@xxxxxxxxx>

Applied, thank you.

For some reason the patches posted by the kbuild robot never reach it to
the mailing list and therefore never make it into patchwork.

Which means I have to process these by hand which is more work and error
prone.

I'll try to watch vger's mail system for why this may be happening but
if you see any bounce notificiations or info on your end please let me
know.

Thank you.