]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: Fix for warning uninitialized symbol hw_err_lst3
authorShiju Jose <shiju.jose@huawei.com>
Wed, 24 Oct 2018 14:32:18 +0000 (15:32 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Oct 2018 21:25:31 +0000 (14:25 -0700)
commita16ee81661c38a91d692c605c567fa0ec5707153
tree63d249af9757be3552d52d115a85c0c8f8dc33bf
parent153f65ee137f47f881e96bf86fa2f94a86b6826e
net: hns3: Fix for warning uninitialized symbol hw_err_lst3

This patch fixes the smatch warning,

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c:700
hclge_log_and_clear_ppp_error() error: uninitialized symbol
'hw_err_lst3'

Link: https://lkml.org/lkml/2018/10/23/430
Fixes: c88ce29a4af5 ("net: hns3: Add enable and process hw errors from PPP")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Shiju Jose <shiju.jose@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/hns3pf/hclge_err.c