@@ -92,7 +92,7 @@ static inline int pic_set_irq1(struct kvm_kpic_state *s, int irq, int level)
mask = 1 << irq;
if (s->elcr & mask) /* level triggered */
if (level) {
- ret = !(s->irr & mask);
+ ret = !!!(s->irr & mask);
s->irr |= mask;
s->last_irr |= mask;
} else {
@@ -102,7 +102,7 @@ static inline int pic_set_irq1(struct kvm_kpic_state *s, int irq, int level)
else /* edge triggered */
if (level) {
if ((s->last_irr & mask) == 0) {
- ret = !(s->irr & mask);
+ ret = !!!(s->irr & mask);
s->irr |= mask;
}
s->last_irr |= mask;