[PATCH 04/12] xf86: don't call getscreenpixmap in enabledisablefbaccess

Dave Airlie airlied at gmail.com
Thu Oct 20 03:44:20 PDT 2011


From: Dave Airlie <airlied at redhat.com>

This isn't used anywhere in here.

Pointed out by coverity scan.

Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 hw/xfree86/common/xf86Helper.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/hw/xfree86/common/xf86Helper.c b/hw/xfree86/common/xf86Helper.c
index cf57752..96444d1 100644
--- a/hw/xfree86/common/xf86Helper.c
+++ b/hw/xfree86/common/xf86Helper.c
@@ -1006,9 +1006,7 @@ xf86EnableDisableFBAccess(int scrnIndex, Bool enable)
 {
     ScrnInfoPtr pScrnInfo = xf86Screens[scrnIndex];
     ScreenPtr pScreen = pScrnInfo->pScreen;
-    PixmapPtr pspix;
 
-    pspix = (*pScreen->GetScreenPixmap) (pScreen);
     if (enable)
     {
 	/*
-- 
1.7.6.4



More information about the xorg-devel mailing list