diff options
author | Moore, Eric Dean <Eric.Moore@lsil.com> | 2005-05-11 19:37:26 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2005-05-20 16:47:54 -0400 |
commit | d485eb830576eef911727b1347402e9a708998a2 (patch) | |
tree | 497abb8f1cf8f82969647e0844da6752042f220a /drivers/message/fusion/mptlan.c | |
parent | 3fadc59d603caf70e7a5295158e4f6eb06dffb8f (diff) |
[SCSI] fusion-kfree-cleanup
This patch is originally From: Jesper Juhl <juhl-lkml@dif.dk>
This patch gets rid of redundant NULL checks prior to calling kfree() in
drivers/message/* There are also a few small whitespace changes in there.
Signed-off-by: Eric Moore <Eric.Moore@lsil.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/message/fusion/mptlan.c')
-rw-r--r-- | drivers/message/fusion/mptlan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/message/fusion/mptlan.c b/drivers/message/fusion/mptlan.c index 7defac72f256..52794be5a95c 100644 --- a/drivers/message/fusion/mptlan.c +++ b/drivers/message/fusion/mptlan.c | |||
@@ -538,8 +538,8 @@ mpt_lan_close(struct net_device *dev) | |||
538 | } | 538 | } |
539 | } | 539 | } |
540 | 540 | ||
541 | kfree (priv->RcvCtl); | 541 | kfree(priv->RcvCtl); |
542 | kfree (priv->mpt_rxfidx); | 542 | kfree(priv->mpt_rxfidx); |
543 | 543 | ||
544 | for (i = 0; i < priv->tx_max_out; i++) { | 544 | for (i = 0; i < priv->tx_max_out; i++) { |
545 | if (priv->SendCtl[i].skb != NULL) { | 545 | if (priv->SendCtl[i].skb != NULL) { |