summaryrefslogtreecommitdiffstats
path: root/drivers/net/slip.c
diff options
context:
space:
mode:
authorMatvejchikov Ilya <matvejchikov@gmail.com>2011-07-12 23:45:37 +0200
committerDavid S. Miller <davem@davemloft.net>2011-07-13 11:30:15 +0200
commit30c5f8ecf246997d16ba5b11becc5f10f9deaf7a (patch)
tree5589f8e812860c489841fa2eb1a0531c339883ee /drivers/net/slip.c
parentnet: Kill support for multiple hh_cache entries per neighbour (diff)
downloadlinux-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.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);