slip: remove redundant NULL-pointer check before calling slhc_free
Signed-off-by: Matvejchikov Ilya <matvejchikov@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5c25f686db
commit
30c5f8ecf2
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue