diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2007-03-16 07:40:00 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-04-28 11:01:00 -0400 |
commit | fd48f8d3a3e147e666d838194d5f9de64403ecb1 (patch) | |
tree | 12a7b93bc8107f18b12abe648585ead2b1e70514 /drivers/net/wireless/airo.c | |
parent | aa93c85d09295dcb269fc1a0690d9ddfb58f46cc (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/airo.c')
-rw-r--r-- | drivers/net/wireless/airo.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c index 7fe0a61091a6..d08d2275ad5f 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) | |||
2740 | 2740 | ||
2741 | static void airo_networks_free(struct airo_info *ai) | 2741 | static void airo_networks_free(struct airo_info *ai) |
2742 | { | 2742 | { |
2743 | if (!ai->networks) | ||
2744 | return; | ||
2745 | kfree(ai->networks); | 2743 | kfree(ai->networks); |
2746 | ai->networks = NULL; | 2744 | ai->networks = NULL; |
2747 | } | 2745 | } |