mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 09:59:32 +00:00
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>
This commit is contained in:
parent
6c0f8bc772
commit
ed247e12fe
1 changed files with 2 additions and 4 deletions
|
@ -1183,8 +1183,7 @@ struct ldc_channel *ldc_alloc(unsigned long id,
|
|||
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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue