OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c25f68
)
slip: remove redundant NULL-pointer check before calling slhc_free
author
Matvejchikov Ilya
<matvejchikov@gmail.com>
Tue, 12 Jul 2011 21:45:37 +0000
(21:45 +0000)
committer
David S. Miller
<davem@davemloft.net>
Wed, 13 Jul 2011 09:30:15 +0000
(
02:30
-0700)
Signed-off-by: Matvejchikov Ilya <matvejchikov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/slip.c
patch
|
blob
|
history
diff --git
a/drivers/net/slip.c
b/drivers/net/slip.c
index
8ec1a9a
..
e8c4582
100644
(file)
--- 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);