Skip to contentSkip to conversation

aic7xxx_old: aicasm_gram.y: Test opcode in type_check()

PATCH RESEND New Roel Kluin 1 participant 1 message Mar 27, 2008

Subsystems (2)
lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

PATCH RESEND 1/1 aic7xxx_old: aicasm_gram.y: Test opcode in type_check()

drivers/scsi/aic7xxx_old/sequencer.h:130:#define AIC_OP_JZ 0xf --
Test opcode, not definition

---

drivers/scsi/aic7xxx/aicasm/aicasm_gram.y +1 -1
index 6066998..702e2db 100644
@@ -1837,7 +1837,7 @@ type_check(symbol_t *symbol, expression_t *expression, int opcode)
 	int and_op;
 
 	and_op = FALSE;
-	if (opcode == AIC_OP_AND || opcode == AIC_OP_JNZ || AIC_OP_JZ)
+	if (opcode == AIC_OP_AND || opcode == AIC_OP_JNZ || opcode == AIC_OP_JZ)
 		and_op = TRUE;
 
 	/*