staging: ozwpan: remove pointless conditional before kfree_skb()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 28 Aug 2012 13:11:00 +0000 (21:11 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Sep 2012 20:12:13 +0000 (13:12 -0700)
Remove pointless conditional before kfree_skb().

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Rupesh Gujare <rgujare@ozmodevices.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ozwpan/ozpd.c

index f546b5a..0b3648c 100644 (file)
@@ -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);
 }
 /*------------------------------------------------------------------------------