[PATCH 29/30] xfree86/fbdevhw: Stop setting fPtr for nothing.

Cyril Brulebois kibi at debian.org
Fri May 20 08:35:39 PDT 2011


Signed-off-by: Cyril Brulebois <kibi at debian.org>
---
 hw/xfree86/fbdevhw/fbdevhw.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/hw/xfree86/fbdevhw/fbdevhw.c b/hw/xfree86/fbdevhw/fbdevhw.c
index dee731b..2a8835d 100644
--- a/hw/xfree86/fbdevhw/fbdevhw.c
+++ b/hw/xfree86/fbdevhw/fbdevhw.c
@@ -82,15 +82,13 @@ typedef struct {
 Bool
 fbdevHWGetRec(ScrnInfoPtr pScrn)
 {
-	fbdevHWPtr fPtr;
-	
 	if (fbdevHWPrivateIndex < 0)
 		fbdevHWPrivateIndex = xf86AllocateScrnInfoPrivateIndex();
 
 	if (FBDEVHWPTR(pScrn) != NULL)
 		return TRUE;
 	
-	fPtr = FBDEVHWPTRLVAL(pScrn) = xnfcalloc(sizeof(fbdevHWRec), 1);
+	FBDEVHWPTRLVAL(pScrn) = xnfcalloc(sizeof(fbdevHWRec), 1);
 	return TRUE;
 }
 
-- 
1.7.5.1



More information about the xorg-devel mailing list