kernel_optimize_test/drivers/net/netdevsim
kbuild test robot 34611e6996 netdevsim: fix ptr_ret.cocci warnings
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: 6556ff32f1 ("netdevsim: use IS_ERR instead of IS_ERR_OR_NULL for debugfs")
CC: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: kbuild test robot <lkp@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-02-05 13:55:32 +01:00
..
bpf.c netdevsim: use IS_ERR instead of IS_ERR_OR_NULL for debugfs 2020-02-03 15:32:20 -08:00
bus.c netdevsim: use __GFP_NOWARN to avoid memalloc warning 2020-02-03 15:32:20 -08:00
dev.c netdevsim: fix ptr_ret.cocci warnings 2020-02-05 13:55:32 +01:00
fib.c
health.c netdevsim: use __GFP_NOWARN to avoid memalloc warning 2020-02-03 15:32:20 -08:00
ipsec.c
Makefile
netdev.c
netdevsim.h netdevsim: fix panic in nsim_dev_take_snapshot_write() 2020-02-03 15:32:20 -08:00