staging: ozwpan: Remove redundant null check before kfree in ozproto.c
kfree on NULL pointer is a no-op. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Rupesh Gujare <rgujare@ozmodevices.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b150718ecb
commit
ba34efba7a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue