提交 ed247e12 编写于 作者: W Wei Yongjun 提交者: David S. Miller

sparc: remove some pointless conditionals before kfree()

Remove some pointless conditionals before kfree().
Signed-off-by: NWei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 6c0f8bc7
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册