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

Matt Turner mattst88 at gmail.com
Mon Sep 26 19:58:24 PDT 2011


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

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 dee731b..fbda349 100644
--- a/hw/xfree86/fbdevhw/fbdevhw.c
+++ b/hw/xfree86/fbdevhw/fbdevhw.c
@@ -99,8 +99,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