Commit 30c5f8ec authored by Matvejchikov Ilya's avatar Matvejchikov Ilya Committed by David S. Miller

slip: remove redundant NULL-pointer check before calling slhc_free

Signed-off-by: default avatarMatvejchikov Ilya <matvejchikov@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment