Commit d985c6ea authored by Tomohiro Kusumi's avatar Tomohiro Kusumi Committed by Martin K. Petersen

scsi: ufs: just use sizeof() for snprintf()

Not much reason to use ARRAY_SIZE() when we know it's for a C string.
Signed-off-by: default avatarTomohiro Kusumi <tkusumi@tuxera.com>
Reviewed-by: default avatarSubhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 0b9961be
...@@ -7880,7 +7880,7 @@ int ufshcd_init(struct ufs_hba *hba, void __iomem *mmio_base, unsigned int irq) ...@@ -7880,7 +7880,7 @@ int ufshcd_init(struct ufs_hba *hba, void __iomem *mmio_base, unsigned int irq)
INIT_WORK(&hba->clk_scaling.resume_work, INIT_WORK(&hba->clk_scaling.resume_work,
ufshcd_clk_scaling_resume_work); ufshcd_clk_scaling_resume_work);
snprintf(wq_name, ARRAY_SIZE(wq_name), "ufs_clkscaling_%d", snprintf(wq_name, sizeof(wq_name), "ufs_clkscaling_%d",
host->host_no); host->host_no);
hba->clk_scaling.workq = create_singlethread_workqueue(wq_name); hba->clk_scaling.workq = create_singlethread_workqueue(wq_name);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment