[PATCH] omap_serial: Removing superfluous check on no interrupt pending.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The irq loop:

do {
	iir = serial_in(up, UART_IIR);
	if (iir & UART_IIR_NO_INT)
		break;

	...

} while (!(iir & UART_IIR_NO_INT) && max_count--);

After the if statement the variable iir is guaranteed to not have the
UART_IIR_NO_INT bit set and the remaining body of the loop doesn't re-read iir
so the check in the while is redundant.


Martin Townsend (1):
  omap_serial: Removing superfluous check on no interrupt pending.

 drivers/tty/serial/omap-serial.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
2.7.4
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux