Mesa (master): mesa: Remove dead error condition.

Vinson Lee vlee at kemper.freedesktop.org
Thu Feb 25 10:27:17 UTC 2010


Module: Mesa
Branch: master
Commit: d553479cc48d512fc5055c166a699bcfff494a24
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d553479cc48d512fc5055c166a699bcfff494a24

Author: Vinson Lee <vlee at vmware.com>
Date:   Thu Feb 25 02:26:18 2010 -0800

mesa: Remove dead error condition.

---

 src/mesa/main/pixel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/pixel.c b/src/mesa/main/pixel.c
index f6c316a..e2e3854 100644
--- a/src/mesa/main/pixel.c
+++ b/src/mesa/main/pixel.c
@@ -427,7 +427,7 @@ _mesa_GetPixelMapusv( GLenum map, GLushort *values )
       _mesa_error(ctx, GL_INVALID_ENUM, "glGetPixelMapusv(map)");
       return;
    }
-   mapsize = pm ? pm->Size : 0;
+   mapsize = pm->Size;
 
    if (!validate_pbo_access(ctx, &ctx->Pack, mapsize,
                             GL_INTENSITY, GL_UNSIGNED_SHORT, values)) {




More information about the mesa-commit mailing list