Commit 9a6aaf61 authored by Salil Mehta's avatar Salil Mehta Committed by David S. Miller

net: hns3: Remove the left over redundant check & assignment

This removes the left over check and assignment which is no longer used
anywhere in the function and should have been removed as part of the
below mentioned patch.

Fixes: 012fcb52 ("net: hns3: activate reset timer when calling reset_event")
Signed-off-by: default avatarSalil Mehta <salil.mehta@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 630e4576
...@@ -3966,7 +3966,6 @@ static void hclge_reset_event(struct pci_dev *pdev, struct hnae3_handle *handle) ...@@ -3966,7 +3966,6 @@ static void hclge_reset_event(struct pci_dev *pdev, struct hnae3_handle *handle)
* normalcy is to reset. * normalcy is to reset.
* 2. A new reset request from the stack due to timeout * 2. A new reset request from the stack due to timeout
* *
* For the first case,error event might not have ae handle available.
* check if this is a new reset request and we are not here just because * check if this is a new reset request and we are not here just because
* last reset attempt did not succeed and watchdog hit us again. We will * last reset attempt did not succeed and watchdog hit us again. We will
* know this if last reset request did not occur very recently (watchdog * know this if last reset request did not occur very recently (watchdog
...@@ -3976,8 +3975,6 @@ static void hclge_reset_event(struct pci_dev *pdev, struct hnae3_handle *handle) ...@@ -3976,8 +3975,6 @@ static void hclge_reset_event(struct pci_dev *pdev, struct hnae3_handle *handle)
* want to make sure we throttle the reset request. Therefore, we will * want to make sure we throttle the reset request. Therefore, we will
* not allow it again before 3*HZ times. * not allow it again before 3*HZ times.
*/ */
if (!handle)
handle = &hdev->vport[0].nic;
if (time_before(jiffies, (hdev->last_reset_time + if (time_before(jiffies, (hdev->last_reset_time +
HCLGE_RESET_INTERVAL))) { HCLGE_RESET_INTERVAL))) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment