net: hns3: Remove un-necessary 'else-if' in the hclge_reset_event()
mainline inclusion from mainline-v5.12-rc7 commit 0600771f category: bugfix bugzilla: 173966 CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0600771fa6b231e801ba1ff5d7adfcf7659dbbf3 ---------------------------------------------------------------------- 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: 9de0b86f ("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> Reviewed-by:
Yongxin Li <liyongxin1@huawei.com> Signed-off-by:
Junxin Chen <chenjunxin1@huawei.com> Signed-off-by:
Zheng Zengkai <zhengzengkai@huawei.com>
Loading
Please sign in to comment