提交 0d44b410 编写于 作者: M Markus Elfring 提交者: Darren Hart

tc1100-wmi: Delete an unnecessary check before the function call "kfree"

The kfree() function tests whether its argument is NULL and then
returns immediately. Thus the test around the call is not needed.

This issue was detected by using the Coccinelle software.
Signed-off-by: NMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
上级 b8830a4e
......@@ -82,7 +82,7 @@ static int get_state(u32 *out, u8 instance)
tmp = 0;
}
if (result.length > 0 && result.pointer)
if (result.length > 0)
kfree(result.pointer);
switch (instance) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册