]> err.no Git - linux-2.6/commitdiff
[PATCH] airo: Don't check for NULL before kfree()
authorMichal Schmidt <mschmidt@redhat.com>
Fri, 16 Mar 2007 11:40:00 +0000 (12:40 +0100)
committerJeff Garzik <jeff@garzik.org>
Sat, 28 Apr 2007 15:01:00 +0000 (11:01 -0400)
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>
drivers/net/wireless/airo.c

index 7fe0a61091a65bd33665e4df2943caddd325692a..d08d2275ad5facfec1fe929beca02beea1ca1c7a 100644 (file)
@@ -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;
 }