Remove redundant checking of sc_leaving (uart_intr() already handles this).

Approved by:	marcel
This commit is contained in:
Marius Strobl 2010-05-02 19:07:19 +00:00
parent a9ef85b792
commit f6ffc3c26b
2 changed files with 2 additions and 5 deletions

View File

@ -604,7 +604,7 @@ ns8250_bus_ipend(struct uart_softc *sc)
if (ipend == 0)
ns8250_clrint(bas);
uart_unlock(sc->sc_hwmtx);
return ((sc->sc_leaving) ? 0 : ipend);
return (ipend);
}
static int

View File

@ -644,12 +644,9 @@ oct16550_bus_ipend(struct uart_softc *sc)
if (ipend) octeon_led_run_wheel(&where1, 6 + device_get_unit(sc->sc_dev));
#endif
return ((sc->sc_leaving) ? 0 : ipend);
return (ipend);
}
static int
oct16550_bus_param (struct uart_softc *sc, int baudrate, int databits,
int stopbits, int parity)