Commit fd48f8d3 authored by Michal Schmidt's avatar Michal Schmidt Committed by Jeff Garzik

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

It's unnecessary to check for NULL before calling kfree().
Signed-off-by: default avatarMichal Schmidt <mschmidt@redhat.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment