summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobled <nobled@dreamwidth.org>2011-10-17 21:27:55 +0000
committernobled <nobled@dreamwidth.org>2011-12-08 21:20:25 +0000
commit37fd22a09166c27c47e4803f5ee14047ee03856d (patch)
tree4ce58ba3a0ec03bb4862df39ed130d496668af8d
parent20b0daf82de91fd57b7e8d825786789149f6358d (diff)
mesa/image: delete dead store
The return value here is a) always zero, b) never used. Reviewed-by: Brian Paul <brianp@vmware.com>
-rw-r--r--src/mesa/main/image.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c
index f29b56647d0..31a0f944cae 100644
--- a/src/mesa/main/image.c
+++ b/src/mesa/main/image.c
@@ -1220,16 +1220,9 @@ _mesa_image_address( GLuint dimensions,
if (type == GL_BITMAP) {
/* BITMAP data */
GLint comp_per_pixel; /* components per pixel */
- GLint bytes_per_comp; /* bytes per component */
GLint bytes_per_row;
GLint bytes_per_image;
- /* Compute bytes per component */
- bytes_per_comp = _mesa_sizeof_packed_type( type );
- if (bytes_per_comp < 0) {
- return NULL;
- }
-
/* Compute number of components per pixel */
comp_per_pixel = _mesa_components_in_format( format );
if (comp_per_pixel < 0) {