projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa93c85
)
[PATCH] airo: Don't check for NULL before kfree()
author
Michal Schmidt
<mschmidt@redhat.com>
Fri, 16 Mar 2007 11:40:00 +0000
(12:40 +0100)
committer
Jeff 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
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/airo.c
b/drivers/net/wireless/airo.c
index
7fe0a61
..
d08d227
100644
(file)
--- 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;
}