summaryrefslogtreecommitdiffstats
path: root/drivers/net/chelsio
diff options
context:
space:
mode:
authorWei Yongjun <yjwei@cn.fujitsu.com>2009-02-25 00:45:09 +0000
committerDavid S. Miller <davem@davemloft.net>2009-02-26 23:07:38 -0800
commitf4fe5a9c6d49d760569feed12d54743e0c4fe6e8 (patch)
tree2be4c3410a05db4cefe1328f87caa2e276956dc9 /drivers/net/chelsio
parentc3431ea71ee2ec9d892b5d7a83eb0afcf8c79263 (diff)
downloadop-kernel-dev-f4fe5a9c6d49d760569feed12d54743e0c4fe6e8.zip
op-kernel-dev-f4fe5a9c6d49d760569feed12d54743e0c4fe6e8.tar.gz
chelsio: remove some pointless conditionals before kfree_skb()
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>
Diffstat (limited to 'drivers/net/chelsio')
-rw-r--r--drivers/net/chelsio/sge.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/chelsio/sge.c b/drivers/net/chelsio/sge.c
index 840da83..58f6fc0 100644
--- a/drivers/net/chelsio/sge.c
+++ b/drivers/net/chelsio/sge.c
@@ -1967,8 +1967,7 @@ void t1_sge_stop(struct sge *sge)
tx_sched_stop(sge);
for (i = 0; i < MAX_NPORTS; i++)
- if (sge->espibug_skb[i])
- kfree_skb(sge->espibug_skb[i]);
+ kfree_skb(sge->espibug_skb[i]);
}
/*
OpenPOWER on IntegriCloud