Skip to content

Commit

Permalink
omap_serial: Removing superfluous check on no interrupt pending.
Browse files Browse the repository at this point in the history
The do .. while loop checks for interrupt pending at the
start of the loop and exits if there is none, it then
checks again for this condition at the end of the loop.

Signed-off-by: Martin Townsend <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
martintownsend authored and gregkh committed Oct 23, 2017
1 parent e361d1f commit e60f9fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tty/serial/omap-serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ static irqreturn_t serial_omap_irq(int irq, void *dev_id)
default:
break;
}
} while (!(iir & UART_IIR_NO_INT) && max_count--);
} while (max_count--);

spin_unlock(&up->port.lock);

Expand Down

0 comments on commit e60f9fd

Please sign in to comment.