staging: ozwpan: Remove redundant null check before kfree in ozproto.c
authorSachin Kamat <[email protected]>
Tue, 20 Nov 2012 11:40:09 +0000 (17:10 +0530)
committerGreg Kroah-Hartman <[email protected]>
Wed, 21 Nov 2012 21:50:12 +0000 (13:50 -0800)
kfree on NULL pointer is a no-op.

Signed-off-by: Sachin Kamat <[email protected]>
Signed-off-by: Rupesh Gujare <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/staging/ozwpan/ozproto.c

index cfb5160d1ebedbdbd24ca95f02418c2258feb250..e00a53915daa6b1d9b79b721c7bb52685eec628d 100644 (file)
@@ -566,8 +566,7 @@ static void oz_protocol_timer(unsigned long arg)
                }
                spin_unlock_bh(&g_polling_lock);
                oz_pd_put(pd);
-               if (t)
-                       kfree(t);
+               kfree(t);
                t = t2;
        } while (t);
        g_timer_state = OZ_TIMER_IDLE;