net: amd: remove redundant continue
authorzhong jiang <zhongjiang@huawei.com>
Thu, 20 Sep 2018 08:07:47 +0000 (16:07 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Sep 2018 16:00:17 +0000 (09:00 -0700)
The continue will not truely skip any code. hence it is safe to
remove it.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/ni65.c

index e248d1a..8931ce6 100644 (file)
@@ -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;
        }