commit | 1bb79284fcf9ebacff16ea0b81b3d5b86528cfd4 | [log] [tgz] |
---|---|---|
author | Wu Fengguang <fengguang.wu@intel.com> | Sat Jul 22 02:54:43 2017 +0800 |
committer | David S. Miller <davem@davemloft.net> | Mon Jul 24 16:20:06 2017 -0700 |
tree | 62146acff26ec842bf6477cabaef87663886ca89 | |
parent | 71085745ec72969708ef79ef80c5e3babfef2957 [diff] |
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>