aubinator: fix if indentation and add brackets to multiline body
authorTimothy Arceri <timothy.arceri@collabora.com>
Mon, 29 Aug 2016 23:53:35 +0000 (09:53 +1000)
committerTimothy Arceri <timothy.arceri@collabora.com>
Wed, 31 Aug 2016 00:19:45 +0000 (10:19 +1000)
Fixes misleading indentation warning in gcc.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/tools/disasm.c

index a1cb191..fcb61c4 100644 (file)
@@ -75,12 +75,13 @@ gen_disasm_disassemble(struct gen_disasm *disasm, void *assembly, int start,
 
       /* Simplistic, but efficient way to terminate disasm */
       if (brw_inst_opcode(devinfo, insn) == BRW_OPCODE_SEND ||
-          brw_inst_opcode(devinfo, insn) == BRW_OPCODE_SENDC)
+          brw_inst_opcode(devinfo, insn) == BRW_OPCODE_SENDC) {
          if (brw_inst_eot(devinfo, insn))
             break;
-         if (brw_inst_opcode(devinfo, insn) == 0)
-            break;
+      }
 
+      if (brw_inst_opcode(devinfo, insn) == 0)
+         break;
    }
 }