Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20240822195944.654691-4-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Bart Van Assche and committed by
Martin K. Petersen
66088e7b dec52397

+2 -4
+2 -4
drivers/scsi/be2iscsi/be_main.c
··· 5528 5528 struct beiscsi_hba *phba = NULL; 5529 5529 struct be_eq_obj *pbe_eq; 5530 5530 unsigned int s_handle; 5531 - char wq_name[20]; 5532 5531 int ret, i; 5533 5532 5534 5533 ret = beiscsi_enable_pci(pcidev); ··· 5633 5634 5634 5635 phba->ctrl.mcc_alloc_index = phba->ctrl.mcc_free_index = 0; 5635 5636 5636 - snprintf(wq_name, sizeof(wq_name), "beiscsi_%02x_wq", 5637 - phba->shost->host_no); 5638 - phba->wq = alloc_workqueue("%s", WQ_MEM_RECLAIM, 1, wq_name); 5637 + phba->wq = alloc_workqueue("beiscsi_%02x_wq", WQ_MEM_RECLAIM, 1, 5638 + phba->shost->host_no); 5639 5639 if (!phba->wq) { 5640 5640 beiscsi_log(phba, KERN_ERR, BEISCSI_LOG_INIT, 5641 5641 "BM_%d : beiscsi_dev_probe-"