mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 23:20:05 +00:00
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…
x
Reference in New Issue
Block a user