mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02:00
RDMA/qib: Simplify an alloc_ordered_workqueue() invocation
Let alloc_ordered_workqueue() format the workqueue name instead of calling snprintf() explicitly. Link: https://patch.msgid.link/r/20240823101840.515398-2-ruanjinjie@huawei.com Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
This commit is contained in:
parent
e2e641fe1c
commit
92c7ad8364
|
|
@ -581,12 +581,9 @@ static int qib_create_workqueues(struct qib_devdata *dd)
|
|||
for (pidx = 0; pidx < dd->num_pports; ++pidx) {
|
||||
ppd = dd->pport + pidx;
|
||||
if (!ppd->qib_wq) {
|
||||
char wq_name[23];
|
||||
|
||||
snprintf(wq_name, sizeof(wq_name), "qib%d_%d",
|
||||
dd->unit, pidx);
|
||||
ppd->qib_wq = alloc_ordered_workqueue(wq_name,
|
||||
WQ_MEM_RECLAIM);
|
||||
ppd->qib_wq = alloc_ordered_workqueue("qib%d_%d",
|
||||
WQ_MEM_RECLAIM,
|
||||
dd->unit, pidx);
|
||||
if (!ppd->qib_wq)
|
||||
goto wq_error;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user