提交 ba34efba 编写于 作者: S Sachin Kamat 提交者: Greg Kroah-Hartman

staging: ozwpan: Remove redundant null check before kfree in ozproto.c

kfree on NULL pointer is a no-op.
Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: NRupesh Gujare <rgujare@ozmodevices.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 b150718e
...@@ -566,8 +566,7 @@ static void oz_protocol_timer(unsigned long arg) ...@@ -566,8 +566,7 @@ static void oz_protocol_timer(unsigned long arg)
} }
spin_unlock_bh(&g_polling_lock); spin_unlock_bh(&g_polling_lock);
oz_pd_put(pd); oz_pd_put(pd);
if (t) kfree(t);
kfree(t);
t = t2; t = t2;
} while (t); } while (t);
g_timer_state = OZ_TIMER_IDLE; g_timer_state = OZ_TIMER_IDLE;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册