From 2dc5ba4a1b127e3ed286718ab0a6c20438361192 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Tue, 29 Nov 2011 23:52:19 -0500 Subject: 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 Signed-off-by: Matt Turner Signed-off-by: Keith Packard --- hw/xfree86/fbdevhw/fbdevhw.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'hw/xfree86/fbdevhw/fbdevhw.c') 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; } -- cgit v1.2.3