]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
scsi: ufs: core: Change the type of uic_command::cmd_active
authorBart Van Assche <bvanassche@acm.org>
Tue, 14 Oct 2025 20:00:56 +0000 (13:00 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 24 Oct 2025 02:18:12 +0000 (22:18 -0400)
Since uic_command::cmd_active is used as a boolean variable, change its
type from 'int' into 'bool'. No functionality has been changed.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://patch.msgid.link/20251014200118.3390839-5-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/core/ufshcd.c
include/ufs/ufshcd.h

index 8339fec975b9230c67cc6c5338fed2fbf01af2af..fa37162046ca95df0bbcede9dc6cb73d8ca2e229 100644 (file)
@@ -2618,7 +2618,7 @@ __ufshcd_send_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd)
 
        init_completion(&uic_cmd->done);
 
-       uic_cmd->cmd_active = 1;
+       uic_cmd->cmd_active = true;
        ufshcd_dispatch_uic_cmd(hba, uic_cmd);
 
        return 0;
@@ -5587,13 +5587,13 @@ static irqreturn_t ufshcd_uic_cmd_compl(struct ufs_hba *hba, u32 intr_status)
                cmd->argument2 |= ufshcd_get_uic_cmd_result(hba);
                cmd->argument3 = ufshcd_get_dme_attr_val(hba);
                if (!hba->uic_async_done)
-                       cmd->cmd_active = 0;
+                       cmd->cmd_active = false;
                complete(&cmd->done);
                retval = IRQ_HANDLED;
        }
 
        if (intr_status & UFSHCD_UIC_PWR_MASK && hba->uic_async_done) {
-               cmd->cmd_active = 0;
+               cmd->cmd_active = false;
                complete(hba->uic_async_done);
                retval = IRQ_HANDLED;
        }
index 9425cfd9d00eb0671566cfad2e4b8ad67e4802b2..4d215a18522ce35b9850b141701dda8423b75bc1 100644 (file)
@@ -78,7 +78,7 @@ struct uic_command {
        const u32 argument1;
        u32 argument2;
        u32 argument3;
-       int cmd_active;
+       bool cmd_active;
        struct completion done;
 };