From: Nava kishore Manne Date: Wed, 12 Jun 2019 11:14:40 +0000 (+0200) Subject: serial: uartps: Fix multiple line dereference X-Git-Tag: v5.4-rc1~601^2~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b6415f243919703c97483a29ff918872f66f165c;p=platform%2Fkernel%2Flinux-rpi.git serial: uartps: Fix multiple line dereference Trivial patch which fixes this checkpatch warning: WARNING: Avoid multiple line dereference - prefer 'port->state->xmit.tail' + port->state->xmit.buf[port->state->xmit. + tail], port->membase + CDNS_UART_FIFO); Fixes: c8dbdc842d30 ("serial: xuartps: Rewrite the interrupt handling logic") Signed-off-by: Nava kishore Manne Signed-off-by: Michal Simek Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c index 32cf675..2dff879 100644 --- a/drivers/tty/serial/xilinx_uartps.c +++ b/drivers/tty/serial/xilinx_uartps.c @@ -321,8 +321,8 @@ static void cdns_uart_handle_tx(void *dev_id) * register. */ writel( - port->state->xmit.buf[port->state->xmit. - tail], port->membase + CDNS_UART_FIFO); + port->state->xmit.buf[port->state->xmit.tail], + port->membase + CDNS_UART_FIFO); port->icount.tx++;