]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: hns3: Add handle for default case
authorJian Shen <shenjian15@huawei.com>
Fri, 21 Sep 2018 15:41:42 +0000 (16:41 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 22 Sep 2018 02:29:32 +0000 (19:29 -0700)
commitfa7a4bd564ccca06f17f5f509ab020ee973b4c72
tree2d09ac32002b343c6e3e190a68e2fa5f0d89db77
parent6cee6fc38402fe49f1488ad7fab91309d9908da6
net: hns3: Add handle for default case

There are a few "switch-case" codes missed handle for default case. For
some abnormal case, it should return error code instead of return 0.

Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c