aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mpt3sas
diff options
context:
space:
mode:
authorTomas Henzl <thenzl@redhat.com>2020-09-11 20:00:57 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2020-09-15 18:37:00 -0400
commit3d49f7426e6c4e9c41d0aa88f0a76616912a383e (patch)
tree9b4509cc773a0ddb76b0efe506b1d74959db7d5c /drivers/scsi/mpt3sas
parentscsi: mpt3sas: Fix sync irqs (diff)
downloadlinux-dev-3d49f7426e6c4e9c41d0aa88f0a76616912a383e.tar.xz
linux-dev-3d49f7426e6c4e9c41d0aa88f0a76616912a383e.zip
scsi: mpt3sas: A small correction in _base_process_reply_queue
There is no need to compute modulo. A simple comparison is good enough. Link: https://lore.kernel.org/r/20200911180057.14633-1-thenzl@redhat.com Acked-by: sreekanth reddy <sreekanth.reddy@broadcom.com> Signed-off-by: Tomas Henzl <thenzl@redhat.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/mpt3sas')
-rw-r--r--drivers/scsi/mpt3sas/mpt3sas_base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.c b/drivers/scsi/mpt3sas/mpt3sas_base.c
index e08ad13714d4..b096917fc314 100644
--- a/drivers/scsi/mpt3sas/mpt3sas_base.c
+++ b/drivers/scsi/mpt3sas/mpt3sas_base.c
@@ -1626,7 +1626,7 @@ _base_process_reply_queue(struct adapter_reply_queue *reply_q)
* So that FW can find enough entries to post the Reply
* Descriptors in the reply descriptor post queue.
*/
- if (!base_mod64(completed_cmds, ioc->thresh_hold)) {
+ if (completed_cmds >= ioc->thresh_hold) {
if (ioc->combined_reply_queue) {
writel(reply_q->reply_post_host_index |
((msix_index & 7) <<