[PATCH] Remove another if (E != NULL) check around free(E)

Matt Turner mattst88 at gmail.com
Tue Nov 29 20:52:19 PST 2011


I wonder if there are any other patterns we haven't seen yet?

Reviewed-by: Jamey Sharp <jamey at minilop.net>
Signed-off-by: Matt Turner <mattst88 at gmail.com>
---
 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 d7b4d3c..2019741 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;
 }
-- 
1.7.3.4



More information about the xorg-devel mailing list