[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAPgLHd8TSXfQtVc3JSBKuXQTOFvyLoUgzsXw=wLkt2rHM9aALg@mail.gmail.com>
Date: Tue, 28 Aug 2012 21:12:27 +0800
From: Wei Yongjun <weiyj.lk@...il.com>
To: isdn@...ux-pingi.de
Cc: yongjun_wei@...ndmicro.com.cn, netdev@...r.kernel.org
Subject: [PATCH] mISDN: remove pointless conditional before kfree_skb()
From: Wei Yongjun <yongjun_wei@...ndmicro.com.cn>
Remove pointless conditional before kfree_skb().
Signed-off-by: Wei Yongjun <yongjun_wei@...ndmicro.com.cn>
---
drivers/isdn/mISDN/socket.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/isdn/mISDN/socket.c b/drivers/isdn/mISDN/socket.c
index abe2d69..f677724 100644
--- a/drivers/isdn/mISDN/socket.c
+++ b/drivers/isdn/mISDN/socket.c
@@ -243,8 +243,7 @@ mISDN_sock_sendmsg(struct kiocb *iocb, struct socket *sock,
}
done:
- if (skb)
- kfree_skb(skb);
+ kfree_skb(skb);
release_sock(sk);
return err;
}
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists