diff options
author | Jesper Juhl <jesper.juhl@gmail.com> | 2005-11-07 04:01:32 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-07 10:54:05 -0500 |
commit | 6044ec8882c726e325017bd948aa0cd94ad33abc (patch) | |
tree | 3bfc5dc93434e8ad556540f6689abcd2699aa45d /drivers/video | |
parent | 2ea7533060e361810c21b2f5ee02151c4dfb85d8 (diff) |
[PATCH] kfree cleanup: misc remaining drivers
This is the remaining misc drivers/ part of the big kfree cleanup patch.
Remove pointless checks for NULL prior to calling kfree() in misc files in
drivers/.
Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Acked-by: Aristeu Sergio Rozanski Filho <aris@cathedrallabs.org>
Acked-by: Roland Dreier <rolandd@cisco.com>
Acked-by: Pierre Ossman <drzeus@drzeus.cx>
Acked-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Acked-by: Len Brown <len.brown@intel.com>
Acked-by: "Antonino A. Daplas" <adaplas@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/i810/i810_main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/i810/i810_main.c b/drivers/video/i810/i810_main.c index 1d148c5a5a4b..c0c974b1afaa 100644 --- a/drivers/video/i810/i810_main.c +++ b/drivers/video/i810/i810_main.c | |||
@@ -2057,8 +2057,7 @@ static void i810fb_release_resource(struct fb_info *info, | |||
2057 | iounmap(par->mmio_start_virtual); | 2057 | iounmap(par->mmio_start_virtual); |
2058 | if (par->aperture.virtual) | 2058 | if (par->aperture.virtual) |
2059 | iounmap(par->aperture.virtual); | 2059 | iounmap(par->aperture.virtual); |
2060 | if (par->edid) | 2060 | kfree(par->edid); |
2061 | kfree(par->edid); | ||
2062 | if (par->res_flags & FRAMEBUFFER_REQ) | 2061 | if (par->res_flags & FRAMEBUFFER_REQ) |
2063 | release_mem_region(par->aperture.physical, | 2062 | release_mem_region(par->aperture.physical, |
2064 | par->aperture.size); | 2063 | par->aperture.size); |