提交 30c5f8ec 编写于 作者: M Matvejchikov Ilya 提交者: David S. Miller

slip: remove redundant NULL-pointer check before calling slhc_free

Signed-off-by: NMatvejchikov Ilya <matvejchikov@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 5c25f686
......@@ -194,8 +194,7 @@ static int sl_alloc_bufs(struct slip *sl, int mtu)
err_exit:
#ifdef SL_INCLUDE_CSLIP
kfree(cbuff);
if (slcomp)
slhc_free(slcomp);
slhc_free(slcomp);
#endif
kfree(xbuff);
kfree(rbuff);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册