diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2012-08-28 21:11:00 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-04 13:12:13 -0700 |
commit | 0c925aa043640086ff928f45c89274965eace5a9 (patch) | |
tree | 5643ff245cc30d12f9926573a299683ecf73cc47 /drivers/staging | |
parent | ba07275faf0169820ff387c5f0d12a8a2e2165c8 (diff) |
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/ozwpan/ozpd.c | 3 |
1 files changed, 1 insertions, 2 deletions
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); } /*------------------------------------------------------------------------------ |