Skip to content

Commit 19d7cda

Browse files
bvanasschemartinkpetersen
authored andcommitted
scsi: qedi: 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 8bbe60b commit 19d7cda

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/scsi/qedi/qedi_main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2776,9 +2776,9 @@ static int __qedi_probe(struct pci_dev *pdev, int mode)
27762776
goto free_cid_que;
27772777
}
27782778

2779-
sprintf(host_buf, "qedi_ofld%d", qedi->shost->host_no);
2780-
qedi->offload_thread =
2781-
alloc_workqueue("%s", WQ_MEM_RECLAIM, 1, host_buf);
2779+
qedi->offload_thread = alloc_workqueue("qedi_ofld%d",
2780+
WQ_MEM_RECLAIM,
2781+
1, qedi->shost->host_no);
27822782
if (!qedi->offload_thread) {
27832783
QEDI_ERR(&qedi->dbg_ctx,
27842784
"Unable to start offload thread!\n");

0 commit comments

Comments
 (0)