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:
Sachin Kamat 2012-11-20 17:10:09 +05:30 committed by Greg Kroah-Hartman
parent b150718ecb
commit ba34efba7a
1 changed files with 1 additions and 2 deletions

View 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;