diff options
author | Daniel Mack <daniel@zonque.org> | 2018-04-10 20:35:58 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2018-04-19 19:22:43 +0300 |
commit | 9ff6fde86fd27a0c733c01114eb0d46bd3a33fb7 (patch) | |
tree | aa54bac9457e49aabcb6bb0928eb7fbb85e1ca0e /drivers/scsi/NCR5380.h | |
parent | 6da2b2d46ff937edc3ecea0a36d92252981d033a (diff) | |
download | linux-9ff6fde86fd27a0c733c01114eb0d46bd3a33fb7.tar.xz |
wcn36xx: use READ_ONCE() to access desc->ctrl
When accessing shared memory to check for the stat of submitted
descriptors, make sure to use READ_ONCE(). This will guarantee the
compiler treats these memory locations as volatile and doesn't apply
any caching.
While this doesn't fix any particular problem I ran into, it's best
practice to do it this way.
Note that this patch also removes the superflous extra condition check
in the do-while loop in reap_tx_dxes(), as the loop will break
instantly anyway in that case.
Signed-off-by: Daniel Mack <daniel@zonque.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/scsi/NCR5380.h')
0 files changed, 0 insertions, 0 deletions