diff options
author | Tomohiro Kusumi <tkusumi@tuxera.com> | 2017-03-28 16:49:29 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-03-29 22:42:21 -0400 |
commit | d985c6eaa896c7f93846f97f1f7ab47aa57903ef (patch) | |
tree | c4c8c87f9e4dfab1e5a93c6224861dec7013a64e /drivers/scsi/ufs/ufshcd.c | |
parent | 0b9961be101419def7f7249f8e2f9b28d28b8526 (diff) | |
download | talos-obmc-linux-d985c6eaa896c7f93846f97f1f7ab47aa57903ef.tar.gz talos-obmc-linux-d985c6eaa896c7f93846f97f1f7ab47aa57903ef.zip |
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: Tomohiro Kusumi <tkusumi@tuxera.com>
Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/ufs/ufshcd.c')
-rw-r--r-- | drivers/scsi/ufs/ufshcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 109a7623b561..790c19c2162b 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -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, 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); hba->clk_scaling.workq = create_singlethread_workqueue(wq_name); |