summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatvejchikov Ilya <matvejchikov@gmail.com>2011-07-12 21:45:37 +0000
committerDavid S. Miller <davem@davemloft.net>2011-07-13 02:30:15 -0700
commit30c5f8ecf246997d16ba5b11becc5f10f9deaf7a (patch)
tree5589f8e812860c489841fa2eb1a0531c339883ee
parent5c25f686db352082eef8daa21b760192351a023a (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>
-rw-r--r--drivers/net/slip.c3
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);