]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
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 e248d1ab3e47cda242108accc9e62395eddaaa44..8931ce6bab7bb41149625589fb6aa0686f1b7ec6 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;
        }