Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1669669pxf; Fri, 2 Apr 2021 18:37:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyd7nnn3lfBNuUOF9xF+cWdLU5gL4d1276QktSVC66wa6Vvb0ZUpgD0MA4BaIgXmsfxEfq X-Received: by 2002:a17:906:8482:: with SMTP id m2mr5005675ejx.518.1617413851420; Fri, 02 Apr 2021 18:37:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617413851; cv=none; d=google.com; s=arc-20160816; b=pwbSoC/JiaEF1fAH+L9uf9JZ6ourl1O4CYsrL0PE7ZhzaDTz/mfl9lLTIZF+GHviwz CTpysXIh+Lu1aQnWAgi8QScQwv8tg8ffx6XsialM5oVbm1i8ksW4lxBplFucT8C8syJE yjw/hjkFoHhm9akHRMwy1fBGnvpTuudZnnZXu5lDg5vKAA5YGvBJlN9LxM4ghQwYfafJ 9AR1vaPJW38rqHXEk2n1RfPJlPxH8KWYbChxiY0GCtstzisvfPb5BXb5Jqvl3/OwJ5QY tmdzlo1wgi1OV57oiUUWuNAxlj2AJapRi/68j+01Na08OXwQGfuq289TV1fWwiYezou2 XT0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=B0SIvmrvxJVSi0b/6FWjsapPETj4I7D60YIx8bdDsYA=; b=tKyg8AF0FC6KjpUFKzD++Q08jf+RaCxalql/2EioPpYRzlqJlK4dvrD7xajqCKkDFb 3GcfNatXk6IM3TYUFtVKfL0SMiZXki+7LcZyYAN6XI4PnKWILdYuYPHlli4HyjV2vpyR FA/5I6xTWF1FdRrZMbTj9AJhW48zjknUaG5apKz4PN2o5iWTX/5iRrS5DxRXl77R3xoq VW8FrnK9YzfzBORGMybHXMYxFYpYbpRacnhfvZnu998O8oU2m2Lz6sQAGbCKN7/Oc5g2 dd69d+IDf6T0gQJCumRmvpLaxkwJsIepHtT7bSut6KP8dWyhPXroAoQF4fW6YXfgYnsA InlA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e17si7910414edy.193.2021.04.02.18.37.09; Fri, 02 Apr 2021 18:37:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236109AbhDCBgl (ORCPT + 99 others); Fri, 2 Apr 2021 21:36:41 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:15472 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234488AbhDCBgl (ORCPT ); Fri, 2 Apr 2021 21:36:41 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4FBzx15hR5zyNj7; Sat, 3 Apr 2021 09:34:29 +0800 (CST) Received: from A190218597.china.huawei.com (10.47.74.55) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.498.0; Sat, 3 Apr 2021 09:36:27 +0800 From: Salil Mehta To: , CC: , , , , Subject: [PATCH net 1/2] net: hns3: Remove the left over redundant check & assignment Date: Sat, 3 Apr 2021 02:35:19 +0100 Message-ID: <20210403013520.22108-2-salil.mehta@huawei.com> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20210403013520.22108-1-salil.mehta@huawei.com> References: <20210403013520.22108-1-salil.mehta@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.47.74.55] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: 012fcb52f67c ("net: hns3: activate reset timer when calling reset_event") Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index e3f81c7e0ce7..7ad0722383f5 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c @@ -3976,8 +3976,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 * not allow it again before 3*HZ times. */ - if (!handle) - handle = &hdev->vport[0].nic; if (time_before(jiffies, (hdev->last_reset_time + HCLGE_RESET_INTERVAL))) { -- 2.17.1