From: Sachin Kamat Date: Tue, 20 Nov 2012 11:40:09 +0000 (+0530) Subject: staging: ozwpan: Remove redundant null check before kfree in ozproto.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ba34efba7ab0eed43aca254738c0446af644fb15;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git staging: ozwpan: Remove redundant null check before kfree in ozproto.c kfree on NULL pointer is a no-op. Signed-off-by: Sachin Kamat Signed-off-by: Rupesh Gujare Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/ozwpan/ozproto.c b/drivers/staging/ozwpan/ozproto.c index cfb5160d1ebe..e00a53915daa 100644 --- a/drivers/staging/ozwpan/ozproto.c +++ b/drivers/staging/ozwpan/ozproto.c @@ -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;