Commit ed247e12 authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller

sparc: remove some pointless conditionals before kfree()

Remove some pointless conditionals before kfree().
Signed-off-by: default avatarWei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6c0f8bc7
...@@ -1183,8 +1183,7 @@ struct ldc_channel *ldc_alloc(unsigned long id, ...@@ -1183,8 +1183,7 @@ struct ldc_channel *ldc_alloc(unsigned long id,
free_queue(lp->tx_num_entries, lp->tx_base); free_queue(lp->tx_num_entries, lp->tx_base);
out_free_mssbuf: out_free_mssbuf:
if (mssbuf) kfree(mssbuf);
kfree(mssbuf);
out_free_iommu: out_free_iommu:
ldc_iommu_release(lp); ldc_iommu_release(lp);
...@@ -1217,8 +1216,7 @@ void ldc_free(struct ldc_channel *lp) ...@@ -1217,8 +1216,7 @@ void ldc_free(struct ldc_channel *lp)
hlist_del(&lp->list); hlist_del(&lp->list);
if (lp->mssbuf) kfree(lp->mssbuf);
kfree(lp->mssbuf);
ldc_iommu_release(lp); ldc_iommu_release(lp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment