All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] slip: remove redundant NULL-pointer check before calling slhc_free
@ 2011-07-13  7:45 Matvejchikov Ilya
  2011-07-13  9:32 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Matvejchikov Ilya @ 2011-07-13  7:45 UTC (permalink / raw)
  To: netdev; +Cc: matvejchikov

Signed-off-by: Matvejchikov Ilya <matvejchikov@gmail.com>
---
 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 8ec1a9a..e8c4582 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);
-- 
1.7.6

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/4] slip: remove redundant NULL-pointer check before calling slhc_free
  2011-07-13  7:45 [PATCH 1/4] slip: remove redundant NULL-pointer check before calling slhc_free Matvejchikov Ilya
@ 2011-07-13  9:32 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2011-07-13  9:32 UTC (permalink / raw)
  To: matvejchikov; +Cc: netdev

From: Matvejchikov Ilya <matvejchikov@gmail.com>
Date: Wed, 13 Jul 2011 11:45:37 +0400

> Signed-off-by: Matvejchikov Ilya <matvejchikov@gmail.com>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-07-13  9:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-13  7:45 [PATCH 1/4] slip: remove redundant NULL-pointer check before calling slhc_free Matvejchikov Ilya
2011-07-13  9:32 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.