diff options
author | Matvejchikov Ilya <matvejchikov@gmail.com> | 2011-07-12 21:45:37 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-07-13 02:30:15 -0700 |
commit | 30c5f8ecf246997d16ba5b11becc5f10f9deaf7a (patch) | |
tree | 5589f8e812860c489841fa2eb1a0531c339883ee /drivers/net/slip.c | |
parent | 5c25f686db352082eef8daa21b760192351a023a (diff) |
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>
Diffstat (limited to 'drivers/net/slip.c')
-rw-r--r-- | drivers/net/slip.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/slip.c b/drivers/net/slip.c index 8ec1a9a0bb9a..e8c4582d9561 100644 --- a/drivers/net/slip.c +++ b/drivers/net/slip.c @@ -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); |