staging: ozwpan: remove pointless conditional before kfree_skb()
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>
This commit is contained in:
parent
ba07275faf
commit
0c925aa043
|
@ -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)
|
static void oz_isoc_stream_free(struct oz_isoc_stream *st)
|
||||||
{
|
{
|
||||||
if (st->skb)
|
kfree_skb(st->skb);
|
||||||
kfree_skb(st->skb);
|
|
||||||
kfree(st);
|
kfree(st);
|
||||||
}
|
}
|
||||||
/*------------------------------------------------------------------------------
|
/*------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue