On Fri, Sep 11, 2020 at 11:31 PM Tomas Henzl <thenzl@xxxxxxxxxx> wrote: > > There is no need to compute module a simple comparision > is good enough. > > Signed-off-by: Tomas Henzl <thenzl@xxxxxxxxxx> Acked-by: sreekanth reddy <sreekanth.reddy@xxxxxxxxxxxx> Thanks, Sreekanth > --- > drivers/scsi/mpt3sas/mpt3sas_base.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.c b/drivers/scsi/mpt3sas/mpt3sas_base.c > index a67749c8f4ab..ea51fd04e3f1 100644 > --- a/drivers/scsi/mpt3sas/mpt3sas_base.c > +++ b/drivers/scsi/mpt3sas/mpt3sas_base.c > @@ -1627,7 +1627,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) << > -- > 2.25.4 >