]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: remove unnecessary variable in hclge_get_mac_vlan_cmd_status()
authorJian Shen <shenjian15@huawei.com>
Thu, 1 Aug 2019 03:55:38 +0000 (11:55 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Aug 2019 17:32:13 +0000 (13:32 -0400)
commit5bedbcfb133d668ab59ac8c03fe7a9f066c76e9f
treefd7fb2ce651291bbe7b3796b8f1f4ecfa70e8613
parentc3dc63454f1586e62258932648a8ae6298e74962
net: hns3: remove unnecessary variable in hclge_get_mac_vlan_cmd_status()

The local variable return_status in hclge_get_mac_val_cmd_status()
is useless. So this patch returns the error code directly, instead of
using this variable. Also, replace some '%d' with '%u' in
hclge_get_mac_val_cmd_status().

Signed-off-by: Jian Shen <shenjian15@huawei.com>
Reviewed-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c