]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: cleanup some coding style issue
authorHuazhong Tan <tanhuazhong@huawei.com>
Tue, 21 Jan 2020 08:42:13 +0000 (16:42 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jan 2020 10:46:21 +0000 (11:46 +0100)
commitf35707183d4a5f86b0618f5e2d0f357b429428f7
tree2d10b3addf8e04c473b0abf2947475d275028d03
parent334a5643bc926adc83470c345ce6e27288562fdf
net: hns3: cleanup some coding style issue

This patch removes some unnecessary return value assignments,
some duplicated printing in the caller, refines the judgment
of 0 and uses le16_to_cpu to replace __le16_to_cpu.

Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c