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 a1cb19197cf53fc03a3dfcca5ebfbb42e5278117..fcb61c44acb794c3e4af9578a57fd990658a2abf 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;
    }
 }