projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec3ed29
)
net: amd: remove redundant continue
author
zhong jiang
<zhongjiang@huawei.com>
Thu, 20 Sep 2018 08:07:47 +0000
(16:07 +0800)
committer
David 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
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/amd/ni65.c
b/drivers/net/ethernet/amd/ni65.c
index
e248d1a
..
8931ce6
100644
(file)
--- 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;
}