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>
This commit is contained in:
Matt Turner 2011-11-29 23:52:19 -05:00 committed by Keith Packard
parent b2015a2c01
commit 2dc5ba4a1b

View File

@ -98,8 +98,6 @@ fbdevHWFreeRec(ScrnInfoPtr pScrn)
{
if (fbdevHWPrivateIndex < 0)
return;
if (FBDEVHWPTR(pScrn) == NULL)
return;
free(FBDEVHWPTR(pScrn));
FBDEVHWPTRLVAL(pScrn) = NULL;
}