net: hns3: add optimization in the hclge_hw_error_set_state
authorShiju Jose <shiju.jose@huawei.com>
Fri, 7 Dec 2018 21:08:03 +0000 (21:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Dec 2018 23:57:01 +0000 (15:57 -0800)
commit481a626a603d5e234618a19abbaa889405755f46
tree15d968947a66ac32760b0d683931d93c211ea3f4
parent381c356e956627d387b7f0944d7616175057504f
net: hns3: add optimization in the hclge_hw_error_set_state

1. This patch adds minor loop optimization in the
   hclge_hw_error_set_state function.
2. Adds logging module's name if it fails to configure the
   error interrupts.

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