projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d2f8c9
)
drivers/net/rionet.c: remove some pointless conditionals before kfree_skb()
author
Wei Yongjun
<yjwei@cn.fujitsu.com>
Wed, 25 Feb 2009 00:18:12 +0000
(
00:18
+0000)
committer
David S. Miller
<davem@davemloft.net>
Fri, 27 Feb 2009 07:07:31 +0000
(23:07 -0800)
Remove some pointless conditionals before kfree_skb().
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/rionet.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/rionet.c
b/drivers/net/rionet.c
index a6fd27a2cc3d25b4808ae5c85ba8c7a8e6e9da4b..ec59e29807a67ad94a79ded9d2487856ae436ec9 100644
(file)
--- a/
drivers/net/rionet.c
+++ b/
drivers/net/rionet.c
@@
-362,8
+362,7
@@
static int rionet_close(struct net_device *ndev)
netif_carrier_off(ndev);
for (i = 0; i < RIONET_RX_RING_SIZE; i++)
- if (rnet->rx_skb[i])
- kfree_skb(rnet->rx_skb[i]);
+ kfree_skb(rnet->rx_skb[i]);
list_for_each_entry_safe(peer, tmp, &rionet_peers, node) {
if (rionet_active[peer->rdev->destid]) {