]> git.karo-electronics.de Git - linux-beck.git/commitdiff
mmc: sdio_uart: remove meaningless BUG_ON
authorShawn Lin <shawn.lin@rock-chips.com>
Wed, 2 Nov 2016 07:26:25 +0000 (15:26 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 5 Dec 2016 09:31:12 +0000 (10:31 +0100)
The code seems quite simple to maintain the sdio_uart_table,
and the insert/remove port from the table are symmetric. If
the BUG_ON occurs, which means serial_core modify the index
or mess up the port sequence anyway.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/card/sdio_uart.c

index 5af6fb9a9ce2e56cf78ce3f3629aee6a63f0f6a1..491c187744f58ab4b808dd8b780af3b3526834aa 100644 (file)
@@ -135,8 +135,6 @@ static void sdio_uart_port_remove(struct sdio_uart_port *port)
 {
        struct sdio_func *func;
 
-       BUG_ON(sdio_uart_table[port->index] != port);
-
        spin_lock(&sdio_uart_table_lock);
        sdio_uart_table[port->index] = NULL;
        spin_unlock(&sdio_uart_table_lock);