]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: Remove un-necessary 'else-if' in the hclge_reset_event()
authorSalil Mehta <salil.mehta@huawei.com>
Mon, 5 Apr 2021 17:06:45 +0000 (18:06 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Apr 2021 22:02:41 +0000 (15:02 -0700)
commit0600771fa6b231e801ba1ff5d7adfcf7659dbbf3
tree39421d03ca9f7f27eee0801a87bb6ec2cf032dea
parent9a6aaf61487e6d96ce0bf9b84a784c528dbf6e5e
net: hns3: Remove un-necessary 'else-if' in the hclge_reset_event()

Code to defer the reset(which caps the frequency of the reset) schedules the
timer and returns. Hence, following 'else-if' looks un-necessary.

Fixes: 9de0b86f6444 ("net: hns3: Prevent to request reset frequently")
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_main.c