diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2016-07-05 07:56:52 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-07-05 10:20:56 -0700 |
commit | 96329a181bfbbac573ce988d7439369c5ade9249 (patch) | |
tree | 8feaacd4a0bc8be196afec35f85d00f7bac2073d /net/packet | |
parent | 684a95c064fc63e48c9936fe3d9dfd5ed1ea3b95 (diff) | |
download | linux-96329a181bfbbac573ce988d7439369c5ade9249.tar.gz linux-96329a181bfbbac573ce988d7439369c5ade9249.tar.bz2 linux-96329a181bfbbac573ce988d7439369c5ade9249.zip |
net: hns: fix return value check in hns_dsaf_get_cfg()
In case of error, function devm_ioremap_resource() returns ERR_PTR()
and never returns NULL. The NULL test in the return value check should
be replaced with IS_ERR().
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/packet')
0 files changed, 0 insertions, 0 deletions