diff options
author | Wei Yongjun <yjwei@cn.fujitsu.com> | 2009-04-15 03:04:56 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-04-15 03:04:56 -0700 |
commit | ed247e12fe5da4417602c3c0ce22932fb0f9cac1 (patch) | |
tree | eba36ff3cd405902f0560639570bf5a3a2d942d3 /arch/sparc | |
parent | 6c0f8bc77233d000a34a01989c42e650c8c32180 (diff) | |
download | kernel_samsung_crespo-ed247e12fe5da4417602c3c0ce22932fb0f9cac1.zip kernel_samsung_crespo-ed247e12fe5da4417602c3c0ce22932fb0f9cac1.tar.gz kernel_samsung_crespo-ed247e12fe5da4417602c3c0ce22932fb0f9cac1.tar.bz2 |
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/sparc')
-rw-r--r-- | arch/sparc/kernel/ldc.c | 6 |
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); |