st/mesa: st_atom_shader.c C99 tidy up
authorTimothy Arceri <t_arceri@yahoo.com.au>
Mon, 30 Jan 2017 23:34:59 +0000 (10:34 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 1 Feb 2017 21:31:28 +0000 (08:31 +1100)
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/state_tracker/st_atom_shader.c

index 8c10ac91c5bb8567db5d441a254cc2f39be3783f..f79afe0b1c28005c0df17ee87f5675876a6f595c 100644 (file)
@@ -132,13 +132,11 @@ update_fp( struct st_context *st )
       _mesa_geometric_samples(st->ctx->DrawBuffer) > 1;
 
    if (stfp->ati_fs) {
-      unsigned u;
-
       if (st->ctx->Fog.Enabled) {
          key.fog = translate_fog_mode(st->ctx->Fog.Mode);
       }
 
-      for (u = 0; u < MAX_NUM_FRAGMENT_REGISTERS_ATI; u++) {
+      for (unsigned u = 0; u < MAX_NUM_FRAGMENT_REGISTERS_ATI; u++) {
          key.texture_targets[u] = get_texture_target(st->ctx, u);
       }
    }