Skip to contentSkip to conversation

serial: sh-sci: Drop superfluous assignment in sci_request_dma()

PATCH New Geert Uytterhoeven 1 participant 1 message Jul 20, 2018 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 serial: sh-sci: Drop superfluous assignment in sci_request_dma()

No later code uses the assigned value, so it can be dropped.

Fixes 2c4ee23530ffc022 ("serial: sh-sci: Postpone DMA release when falling back to PIO")
---
 drivers/tty/serial/sh-sci.c | 1 -
 1 file changed, 1 deletion(-)
drivers/tty/serial/sh-sci.c +0 -1
index f8e53ac5c17dfb94..6ff6f2bf3b9b749f 100644
@@ -1574,7 +1574,6 @@ static void sci_request_dma(struct uart_port *port)
 		if (dma_mapping_error(chan->device->dev, s->tx_dma_addr)) {
 			dev_warn(port->dev, "Failed mapping Tx DMA descriptor\n");
 			dma_release_channel(chan);
-			chan = NULL;
 		} else {
 			dev_dbg(port->dev, "%s: mapped %lu@%p to %pad\n",
 				__func__, UART_XMIT_SIZE,
Signature · 1 line
2.17.1