serial: sh-sci: Drop superfluous assignment in sci_request_dma()
No later code uses the assigned value, so it can be dropped. Reported-by: Simon Horman <horms@verge.net.au> Fixes: 2c4ee23530ffc022 ("serial: sh-sci: Postpone DMA release when falling back to PIO") Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
26f22d5748
commit
ac8a103e69
@ -1574,7 +1574,6 @@ static void sci_request_dma(struct uart_port *port)
|
|||||||
if (dma_mapping_error(chan->device->dev, s->tx_dma_addr)) {
|
if (dma_mapping_error(chan->device->dev, s->tx_dma_addr)) {
|
||||||
dev_warn(port->dev, "Failed mapping Tx DMA descriptor\n");
|
dev_warn(port->dev, "Failed mapping Tx DMA descriptor\n");
|
||||||
dma_release_channel(chan);
|
dma_release_channel(chan);
|
||||||
chan = NULL;
|
|
||||||
} else {
|
} else {
|
||||||
dev_dbg(port->dev, "%s: mapped %lu@%p to %pad\n",
|
dev_dbg(port->dev, "%s: mapped %lu@%p to %pad\n",
|
||||||
__func__, UART_XMIT_SIZE,
|
__func__, UART_XMIT_SIZE,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user