]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[SCSI] aic7xxx: Test opcode, not definition in aicasm:type_check()
authorRoel Kluin <12o3l@tiscali.nl>
Mon, 28 Jan 2008 13:09:54 +0000 (14:09 +0100)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 7 Apr 2008 17:18:59 +0000 (12:18 -0500)
commit0b6c4b14cfb2fd89064d29bdead62f9ed8631399
tree8a9b8e9ecf74f0af991946f189827a0a6a1701ff
parent639db475c8bb77f915f79f567ee98ac673d6edf3
[SCSI] aic7xxx: Test opcode, not definition in aicasm:type_check()

This fixes a bug that we treat all sequencer operations as ands and
never do the additional invalid bit checks non-and operations require
because the if () to determine this has an operand which is always
true at the end of the or statement.

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Acked-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/aic7xxx/aicasm/aicasm_gram.y