aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorMarkus Schneider-Pargmann <[email protected]>2022-12-06 12:57:21 +0100
committerMarc Kleine-Budde <[email protected]>2022-12-12 11:58:32 +0100
commitd4535b90a76af49d1dd7bc70ad0311a88ac5313d (patch)
treeee08c44a08973fb55593f0da4cc91a6178181426 /lib/mpi/mpi-sub-ui.c
parentfac52bf786e5c302990fa79f2fdde24e84f810b0 (diff)
can: m_can: Count TXE FIFO getidx in the driver
The getindex simply increases by one for every iteration. There is no need to get the current getidx every time from a register. Instead we can just count and wrap if necessary. Signed-off-by: Markus Schneider-Pargmann <[email protected]> Link: https://lore.kernel.org/all/[email protected] Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions