]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: fix error and incorrect format
authorGuojia Liao <liaoguojia@huawei.com>
Fri, 16 Aug 2019 08:09:39 +0000 (16:09 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Aug 2019 19:59:12 +0000 (12:59 -0700)
commitb1e0d9127557643bc9aa86b5dfa4a8a455be195d
tree9b489704686f7b488d9261ccb21ba696ef664263
parent0c9ba47d1e4c7e437930fd47c311e8eb96bdea5d
net: hns3: fix error and incorrect format

The pointer type parameter should be declare as const for preventing
from its pointed value being unexpected modified.

The uninitialized variable can not be return directly. The default
return value is 0 if no abnormal result.

This patch fixes the preceding two errors, deletes redundant
declaration of a function and align one parameter.

Signed-off-by: Guojia Liao <liaoguojia@huawei.com>
Signed-off-by: Weihang Li <liweihang@hisilicon.com>
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hnae3.c
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h