From: Shawn Lin Date: Wed, 2 Nov 2016 07:26:25 +0000 (+0800) Subject: mmc: sdio_uart: remove meaningless BUG_ON X-Git-Tag: v4.14-rc1~1898^2~25 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8664dccf3adb1ca3bddf5ddd11e44a0c033cad63;p=platform%2Fkernel%2Flinux-rpi.git mmc: sdio_uart: remove meaningless BUG_ON 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 Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/card/sdio_uart.c b/drivers/mmc/card/sdio_uart.c index 5af6fb9..491c187 100644 --- a/drivers/mmc/card/sdio_uart.c +++ b/drivers/mmc/card/sdio_uart.c @@ -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);