aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2007-03-16 12:40:00 +0100
committerJeff Garzik <jeff@garzik.org>2007-04-28 11:01:00 -0400
commitfd48f8d3a3e147e666d838194d5f9de64403ecb1 (patch)
tree12a7b93bc8107f18b12abe648585ead2b1e70514 /drivers/net/wireless
parentaa93c85d09295dcb269fc1a0690d9ddfb58f46cc (diff)
[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>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/airo.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c
index 7fe0a61091a..d08d2275ad5 100644
--- a/drivers/net/wireless/airo.c
+++ b/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;
}