File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -334,7 +334,6 @@ struct st_hba {
334
334
struct st_ccb * wait_ccb ;
335
335
__le32 * scratch ;
336
336
337
- char work_q_name [20 ];
338
337
struct workqueue_struct * work_q ;
339
338
struct work_struct reset_work ;
340
339
wait_queue_head_t reset_waitq ;
@@ -1795,10 +1794,8 @@ static int stex_probe(struct pci_dev *pdev, const struct pci_device_id *id)
1795
1794
hba -> pdev = pdev ;
1796
1795
init_waitqueue_head (& hba -> reset_waitq );
1797
1796
1798
- snprintf (hba -> work_q_name , sizeof (hba -> work_q_name ),
1799
- "stex_wq_%d" , host -> host_no );
1800
- hba -> work_q =
1801
- alloc_ordered_workqueue ("%s" , WQ_MEM_RECLAIM , hba -> work_q_name );
1797
+ hba -> work_q = alloc_ordered_workqueue ("stex_wq_%d" , WQ_MEM_RECLAIM ,
1798
+ host -> host_no );
1802
1799
if (!hba -> work_q ) {
1803
1800
printk (KERN_ERR DRV_NAME "(%s): create workqueue failed\n" ,
1804
1801
pci_name (pdev ));
You can’t perform that action at this time.
0 commit comments