Skip to content

Commit 70fbb7c

Browse files
bvanasschemartinkpetersen
authored andcommitted
scsi: bfa: Simplify an alloc_ordered_workqueue() invocation
Let alloc_ordered_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 66088e7 commit 70fbb7c

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

drivers/scsi/bfa/bfad_im.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -766,10 +766,8 @@ bfad_thread_workq(struct bfad_s *bfad)
766766
struct bfad_im_s *im = bfad->im;
767767

768768
bfa_trc(bfad, 0);
769-
snprintf(im->drv_workq_name, KOBJ_NAME_LEN, "bfad_wq_%d",
770-
bfad->inst_no);
771-
im->drv_workq = alloc_ordered_workqueue("%s", WQ_MEM_RECLAIM,
772-
im->drv_workq_name);
769+
im->drv_workq = alloc_ordered_workqueue("bfad_wq_%d", WQ_MEM_RECLAIM,
770+
bfad->inst_no);
773771
if (!im->drv_workq)
774772
return BFA_STATUS_FAILED;
775773

drivers/scsi/bfa/bfad_im.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ struct bfad_fcp_binding {
134134
struct bfad_im_s {
135135
struct bfad_s *bfad;
136136
struct workqueue_struct *drv_workq;
137-
char drv_workq_name[KOBJ_NAME_LEN];
138137
struct work_struct aen_im_notify_work;
139138
};
140139

0 commit comments

Comments
 (0)