Browse Source

[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>
Michal Schmidt 18 years ago
parent
commit
fd48f8d3a3
1 changed files with 0 additions and 2 deletions
  1. 0 2
      drivers/net/wireless/airo.c

+ 0 - 2
drivers/net/wireless/airo.c

@@ -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;
 }