diff options
author | Wu Fengguang <fengguang.wu@intel.com> | 2017-07-21 20:54:43 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-07-25 01:20:06 +0200 |
commit | 1bb79284fcf9ebacff16ea0b81b3d5b86528cfd4 (patch) | |
tree | 62146acff26ec842bf6477cabaef87663886ca89 /kernel/bpf/devmap.c | |
parent | Merge tag 'rxrpc-rewrite-20170721' of git://git.kernel.org/pub/scm/linux/kern... (diff) | |
download | linux-1bb79284fcf9ebacff16ea0b81b3d5b86528cfd4.tar.xz linux-1bb79284fcf9ebacff16ea0b81b3d5b86528cfd4.zip |
netvsc: fix ptr_ret.cocci warnings
drivers/net/hyperv/netvsc_drv.c:737:8-14: 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: 9749fed5d43d ("netvsc: use ERR_PTR to avoid dereference issues")
CC: stephen hemminger <stephen@networkplumber.org>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/bpf/devmap.c')
0 files changed, 0 insertions, 0 deletions