Skip to content

Commit

Permalink
slip: remove redundant NULL-pointer check before calling slhc_free
Browse files Browse the repository at this point in the history
Signed-off-by: Matvejchikov Ilya <matvejchikov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Matvejchikov Ilya authored and David S. Miller committed Jul 13, 2011
1 parent 5c25f68 commit 30c5f8e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/slip.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 30c5f8e

Please sign in to comment.