[PATCH 08/14] xfree86/fbman: Fix -Wshadow warning

Adam Jackson ajax at redhat.com
Fri Dec 13 15:05:46 PST 2013


Entirely redundant assignment, just nuke it.

Signed-off-by: Adam Jackson <ajax at redhat.com>
---
 hw/xfree86/common/xf86fbman.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/hw/xfree86/common/xf86fbman.c b/hw/xfree86/common/xf86fbman.c
index 4da6af2..a97ace4 100644
--- a/hw/xfree86/common/xf86fbman.c
+++ b/hw/xfree86/common/xf86fbman.c
@@ -1122,12 +1122,7 @@ localQueryLargestOffscreenLinear(ScreenPtr pScreen,
 
         if (localQueryLargestOffscreenArea(pScreen, &w, &h, gran,
                                            FAVOR_WIDTH_THEN_AREA, priority)) {
-            FBManagerPtr offman;
-            BoxPtr extents;
-
-            offman = (FBManagerPtr) dixLookupPrivate(&pScreen->devPrivates,
-                                                     xf86FBScreenKey);
-            extents = RegionExtents(offman->InitialBoxes);
+            BoxPtr extents = RegionExtents(offman->InitialBoxes);
             if ((extents->x2 - extents->x1) == w)
                 *size = w * h;
             return TRUE;
-- 
1.8.4.2



More information about the xorg-devel mailing list