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:
Matvejchikov Ilya 2011-07-12 21:45:37 +00:00 committed by David S. Miller
parent 5c25f686db
commit 30c5f8ecf2
1 changed files with 1 additions and 2 deletions

View File

@ -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);