i965: the return value of translate_insn() is never used. Make it void.
authorBrian Paul <brianp@vmware.com>
Thu, 12 Feb 2009 23:03:39 +0000 (16:03 -0700)
committerBrian Paul <brianp@vmware.com>
Sat, 14 Feb 2009 00:18:36 +0000 (17:18 -0700)
src/mesa/drivers/dri/i965/brw_wm_pass0.c

index 590cd946ec394640227235dd71d8c68d0c9473f4..3ade6aa6c36968aa3020e571c0cfb1633ff11caa 100644 (file)
@@ -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;
 }