Mesa (master): i965: the return value of translate_insn() is never used. Make it void.

Brian Paul brianp at kemper.freedesktop.org
Sat Feb 14 00:22:42 UTC 2009


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

Author: Brian Paul <brianp at vmware.com>
Date:   Thu Feb 12 16:03:39 2009 -0700

i965: the return value of translate_insn() is never used.  Make it void.

---

 src/mesa/drivers/dri/i965/brw_wm_pass0.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_wm_pass0.c b/src/mesa/drivers/dri/i965/brw_wm_pass0.c
index 590cd94..3ade6aa 100644
--- a/src/mesa/drivers/dri/i965/brw_wm_pass0.c
+++ b/src/mesa/drivers/dri/i965/brw_wm_pass0.c
@@ -334,8 +334,9 @@ static struct brw_wm_ref *get_new_ref( struct brw_wm_compile *c,
 }
 
 
-static struct brw_wm_instruction *translate_insn( struct brw_wm_compile *c,
-						  const struct prog_instruction *inst )
+static void
+translate_insn(struct brw_wm_compile *c,
+               const struct prog_instruction *inst)
 {
    struct brw_wm_instruction *out = get_instruction(c);
    GLuint writemask = inst->DstReg.WriteMask;
@@ -365,8 +366,6 @@ static struct brw_wm_instruction *translate_insn( struct brw_wm_compile *c,
       pass0_set_dst_scalar(c, out, inst, writemask);
    else 
       pass0_set_dst(c, out, inst, writemask);
-
-   return out;
 }
 
 




More information about the mesa-commit mailing list