Skip to content

Commit 22f69de

Browse files
committed
Merge branch 'hns3-fixes'
Salil Mehta says: ==================== Misc. fixes for hns3 driver Fixes for the miscellaneous problems found during the review of the code. ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents 630e457 + 0600771 commit 22f69de

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3966,7 +3966,6 @@ static void hclge_reset_event(struct pci_dev *pdev, struct hnae3_handle *handle)
39663966
* normalcy is to reset.
39673967
* 2. A new reset request from the stack due to timeout
39683968
*
3969-
* For the first case,error event might not have ae handle available.
39703969
* check if this is a new reset request and we are not here just because
39713970
* last reset attempt did not succeed and watchdog hit us again. We will
39723971
* know this if last reset request did not occur very recently (watchdog
@@ -3976,14 +3975,14 @@ static void hclge_reset_event(struct pci_dev *pdev, struct hnae3_handle *handle)
39763975
* want to make sure we throttle the reset request. Therefore, we will
39773976
* not allow it again before 3*HZ times.
39783977
*/
3979-
if (!handle)
3980-
handle = &hdev->vport[0].nic;
39813978

39823979
if (time_before(jiffies, (hdev->last_reset_time +
39833980
HCLGE_RESET_INTERVAL))) {
39843981
mod_timer(&hdev->reset_timer, jiffies + HCLGE_RESET_INTERVAL);
39853982
return;
3986-
} else if (hdev->default_reset_request) {
3983+
}
3984+
3985+
if (hdev->default_reset_request) {
39873986
hdev->reset_level =
39883987
hclge_get_reset_level(ae_dev,
39893988
&hdev->default_reset_request);

0 commit comments

Comments
 (0)