From: Wei Yongjun Date: Tue, 28 Aug 2012 13:11:00 +0000 (+0800) Subject: staging: ozwpan: remove pointless conditional before kfree_skb() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0c925aa043640086ff928f45c89274965eace5a9;p=linux-beck.git staging: ozwpan: remove pointless conditional before kfree_skb() Remove pointless conditional before kfree_skb(). Signed-off-by: Wei Yongjun Acked-by: Rupesh Gujare Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/ozwpan/ozpd.c b/drivers/staging/ozwpan/ozpd.c index f546b5aee869..0b3648ce9687 100644 --- a/drivers/staging/ozwpan/ozpd.c +++ b/drivers/staging/ozwpan/ozpd.c @@ -746,8 +746,7 @@ int oz_isoc_stream_create(struct oz_pd *pd, u8 ep_num) */ static void oz_isoc_stream_free(struct oz_isoc_stream *st) { - if (st->skb) - kfree_skb(st->skb); + kfree_skb(st->skb); kfree(st); } /*------------------------------------------------------------------------------