mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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: c8dbdc842d ("serial: xuartps: Rewrite the interrupt handling logic")
Signed-off-by: Nava kishore Manne <[email protected]>
Signed-off-by: Michal Simek <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
26d5a3245b
commit
b6415f2439
1 changed files with 2 additions and 2 deletions
|
|
@ -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++;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue