aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
diff options
context:
space:
mode:
authorGuangbin Huang <huangguangbin@huawei.com>2019-07-29 10:53:23 +0800
committerDavid S. Miller <davem@davemloft.net>2019-07-29 08:23:40 -0700
commitaa3253b8899d685811d159288f21cd2a2dbb5f0b (patch)
tree1df1fccc19526a15295f4d6c145a097aca70727d /drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
parentnet: hns3: add reset checking before set channels (diff)
downloadlinux-dev-aa3253b8899d685811d159288f21cd2a2dbb5f0b.tar.xz
linux-dev-aa3253b8899d685811d159288f21cd2a2dbb5f0b.zip
net: hns3: add a check for get_reset_level
For some cases, ops->get_reset_level may not be implemented, so we should check whether it is NULL before calling get_reset_level. Signed-off-by: Guangbin Huang <huangguangbin@huawei.com> Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions