Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1707040imm; Thu, 20 Sep 2018 01:20:36 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZm1eqK58kuwn5Ag4OUuW/6T0zgSHMEiSY48/8TggBEOYsd/3ioa9Se8nrmskBgJxpu5Aca X-Received: by 2002:a17:902:8b86:: with SMTP id ay6-v6mr38682610plb.25.1537431636417; Thu, 20 Sep 2018 01:20:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537431636; cv=none; d=google.com; s=arc-20160816; b=DXDyQ1ysIKyDqjLlSL3f6fJdj8MK84uklaCjni6YQn9J5YAx61IG+e63C9zaBlCCzi NFv6/A1UNJ0MNZsJG7LldBdcvEKiCZg8qkAmAhWvk1P7B7t9ysBfAOfVzBpeczTGpN42 ANuJHRBVfN6hFSxMo02J5DmBDYiFQ4cGB9FZfkEGYYTwTEhCn5vnAmraxWTpJmOxomhD JOZGiiMjbGAMOqr5qZ/+OhnfIKPXYSjrqbQVk86mTkHiotQOwFu8hJkfxA1esgNdOpXC lUcnCwsZ7zLoVODMy4ndP8oU6/FIoTGsEd/pM/cvn5jhETr14oRNcXr/RCl8XHW+rSI5 VMhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=hVN9OBKrZWWkVnRNtzCC2DVzfWp13vzmBY8b5LsX69I=; b=JhphKBfo8TSRtnauzxB3FAjHIkVWEXTyaxRWq5Aj9eo0pWfhOUy4w77aNcdBVPkrhz Ib7wq+d8iSY3cOBcrOd7+hVEpgWac4CwcqZzt2Kr+PKiWSw+fUr/h+zmuwHJHPN2MZDC 5mo7NU6O4o7bn4Jgo0jBi7Kgqo0dFehQiD1/wom+XZ/KpgBA/bTIbKfkPEk3a/s3YzrD AOYsWgzrvejHpm+c4pSPp3k5NEgBS/wx51918s8tFjJn79nG6hHTOUW5CJQonbpK99/Q gVXkAfXoHliimGqW53VmEj6FESd0uwDzR5bs9Ji0BIKq/xEHbT5Xlj3HJ1CVR8poPT5Q 5lFQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 138-v6si1226098pgh.312.2018.09.20.01.20.19; Thu, 20 Sep 2018 01:20:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731413AbeITOCa (ORCPT + 99 others); Thu, 20 Sep 2018 10:02:30 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:51777 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726028AbeITOCa (ORCPT ); Thu, 20 Sep 2018 10:02:30 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id A2CA415CF12E; Thu, 20 Sep 2018 16:20:09 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.399.0; Thu, 20 Sep 2018 16:20:09 +0800 From: zhong jiang To: CC: , Subject: [PATCH] net: amd: remove redundant continue Date: Thu, 20 Sep 2018 16:07:47 +0800 Message-ID: <1537430867-38085-1-git-send-email-zhongjiang@huawei.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The continue will not truely skip any code. hence it is safe to remove it. Signed-off-by: zhong jiang --- drivers/net/ethernet/amd/ni65.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/ethernet/amd/ni65.c b/drivers/net/ethernet/amd/ni65.c index e248d1a..8931ce6 100644 --- a/drivers/net/ethernet/amd/ni65.c +++ b/drivers/net/ethernet/amd/ni65.c @@ -435,10 +435,8 @@ static int __init ni65_probe1(struct net_device *dev,int ioaddr) } if(cards[i].vendor_id) { for(j=0;j<3;j++) - if(inb(ioaddr+cards[i].addr_offset+j) != cards[i].vendor_id[j]) { + if(inb(ioaddr+cards[i].addr_offset+j) != cards[i].vendor_id[j]) release_region(ioaddr, cards[i].total_size); - continue; - } } break; } -- 1.7.12.4