[PATCH] airo: Don't check for NULL before kfree()
It's unnecessary to check for NULL before calling kfree(). Signed-off-by: Michal Schmidt <mschmidt@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
Jeff Garzik
parent
aa93c85d09
commit
fd48f8d3a3
@@ -2740,8 +2740,6 @@ static int airo_networks_allocate(struct airo_info *ai)
|
|||||||
|
|
||||||
static void airo_networks_free(struct airo_info *ai)
|
static void airo_networks_free(struct airo_info *ai)
|
||||||
{
|
{
|
||||||
if (!ai->networks)
|
|
||||||
return;
|
|
||||||
kfree(ai->networks);
|
kfree(ai->networks);
|
||||||
ai->networks = NULL;
|
ai->networks = NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user