diff options
author | Matvejchikov Ilya <matvejchikov@gmail.com> | 2011-07-12 23:45:37 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-07-13 11:30:15 +0200 |
commit | 30c5f8ecf246997d16ba5b11becc5f10f9deaf7a (patch) | |
tree | 5589f8e812860c489841fa2eb1a0531c339883ee /drivers/net/slip.c | |
parent | net: Kill support for multiple hh_cache entries per neighbour (diff) | |
download | linux-30c5f8ecf246997d16ba5b11becc5f10f9deaf7a.tar.xz linux-30c5f8ecf246997d16ba5b11becc5f10f9deaf7a.zip |
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); |