提交 fd48f8d3 编写于 作者: M Michal Schmidt 提交者: Jeff Garzik

[PATCH] airo: Don't check for NULL before kfree()

It's unnecessary to check for NULL before calling kfree().
Signed-off-by: NMichal Schmidt <mschmidt@redhat.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 aa93c85d
......@@ -2740,8 +2740,6 @@ static int airo_networks_allocate(struct airo_info *ai)
static void airo_networks_free(struct airo_info *ai)
{
if (!ai->networks)
return;
kfree(ai->networks);
ai->networks = NULL;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册