summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorWei Yongjun <yjwei@cn.fujitsu.com>2009-04-15 03:04:56 -0700
committerDavid S. Miller <davem@davemloft.net>2009-04-15 03:04:56 -0700
commited247e12fe5da4417602c3c0ce22932fb0f9cac1 (patch)
treeeba36ff3cd405902f0560639570bf5a3a2d942d3 /arch
parent6c0f8bc77233d000a34a01989c42e650c8c32180 (diff)
downloadop-kernel-dev-ed247e12fe5da4417602c3c0ce22932fb0f9cac1.zip
op-kernel-dev-ed247e12fe5da4417602c3c0ce22932fb0f9cac1.tar.gz
sparc: remove some pointless conditionals before kfree()
Remove some pointless conditionals before kfree(). Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch')
-rw-r--r--arch/sparc/kernel/ldc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/sparc/kernel/ldc.c b/arch/sparc/kernel/ldc.c
index 6ce5d25..adf5f27 100644
--- a/arch/sparc/kernel/ldc.c
+++ b/arch/sparc/kernel/ldc.c
@@ -1183,8 +1183,7 @@ out_free_txq:
free_queue(lp->tx_num_entries, lp->tx_base);
out_free_mssbuf:
- if (mssbuf)
- kfree(mssbuf);
+ kfree(mssbuf);
out_free_iommu:
ldc_iommu_release(lp);
@@ -1217,8 +1216,7 @@ void ldc_free(struct ldc_channel *lp)
hlist_del(&lp->list);
- if (lp->mssbuf)
- kfree(lp->mssbuf);
+ kfree(lp->mssbuf);
ldc_iommu_release(lp);
OpenPOWER on IntegriCloud