Skip to content

Commit 66088e7

Browse files
bvanasschemartinkpetersen
authored andcommitted
scsi: be2iscsi: Simplify an alloc_workqueue() invocation
Let alloc_workqueue() format the workqueue name instead of calling snprintf() explicitly. Signed-off-by: Bart Van Assche <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
1 parent dec5239 commit 66088e7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/scsi/be2iscsi/be_main.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5528,7 +5528,6 @@ static int beiscsi_dev_probe(struct pci_dev *pcidev,
55285528
struct beiscsi_hba *phba = NULL;
55295529
struct be_eq_obj *pbe_eq;
55305530
unsigned int s_handle;
5531-
char wq_name[20];
55325531
int ret, i;
55335532

55345533
ret = beiscsi_enable_pci(pcidev);
@@ -5634,9 +5633,8 @@ static int beiscsi_dev_probe(struct pci_dev *pcidev,
56345633

56355634
phba->ctrl.mcc_alloc_index = phba->ctrl.mcc_free_index = 0;
56365635

5637-
snprintf(wq_name, sizeof(wq_name), "beiscsi_%02x_wq",
5638-
phba->shost->host_no);
5639-
phba->wq = alloc_workqueue("%s", WQ_MEM_RECLAIM, 1, wq_name);
5636+
phba->wq = alloc_workqueue("beiscsi_%02x_wq", WQ_MEM_RECLAIM, 1,
5637+
phba->shost->host_no);
56405638
if (!phba->wq) {
56415639
beiscsi_log(phba, KERN_ERR, BEISCSI_LOG_INIT,
56425640
"BM_%d : beiscsi_dev_probe-"

0 commit comments

Comments
 (0)