diff options
author | Matt Turner <mattst88@gmail.com> | 2011-11-29 23:52:19 -0500 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-12-01 14:24:54 +0000 |
commit | 2dc5ba4a1b127e3ed286718ab0a6c20438361192 (patch) | |
tree | 5482670a7d16166f4f23f1cd638e78e0555552a5 /hw/xfree86/fbdevhw/fbdevhw.c | |
parent | b2015a2c01711646bb7ae23d684abee0cd55d4d0 (diff) |
Remove another if (E != NULL) check around free(E)
I wonder if there are any other patterns we haven't seen yet?
Reviewed-by: Jamey Sharp <jamey@minilop.net>
Signed-off-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'hw/xfree86/fbdevhw/fbdevhw.c')
-rw-r--r-- | hw/xfree86/fbdevhw/fbdevhw.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/hw/xfree86/fbdevhw/fbdevhw.c b/hw/xfree86/fbdevhw/fbdevhw.c index d7b4d3c20..2019741b2 100644 --- a/hw/xfree86/fbdevhw/fbdevhw.c +++ b/hw/xfree86/fbdevhw/fbdevhw.c @@ -98,8 +98,6 @@ fbdevHWFreeRec(ScrnInfoPtr pScrn) { if (fbdevHWPrivateIndex < 0) return; - if (FBDEVHWPTR(pScrn) == NULL) - return; free(FBDEVHWPTR(pScrn)); FBDEVHWPTRLVAL(pScrn) = NULL; } |