Commit 19d7cda1 authored by Bart Van Assche's avatar Bart Van Assche Committed by Martin K. Petersen
Browse files

scsi: qedi: Simplify an alloc_workqueue() invocation



Let alloc_workqueue() format the workqueue name instead of calling
snprintf() explicitly.

Signed-off-by: default avatarBart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20240822195944.654691-14-bvanassche@acm.org


Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 8bbe60bb
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -2776,9 +2776,9 @@ static int __qedi_probe(struct pci_dev *pdev, int mode)
			goto free_cid_que;
		}

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