[PATCH 47/53] serial: max3100: Simplify a create*_workqueue() call
From: Bart Van Assche
Date: Sun Jun 30 2024 - 18:40:17 EST
Pass a format string to create*_workqueue2() instead of formatting the
workqueue name before create*_workqueue() is called.
Signed-off-by: Bart Van Assche <bvanassche@xxxxxxx>
---
drivers/tty/serial/max3100.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/tty/serial/max3100.c b/drivers/tty/serial/max3100.c
index fda63918d1eb..e8e7a36d73cf 100644
--- a/drivers/tty/serial/max3100.c
+++ b/drivers/tty/serial/max3100.c
@@ -548,7 +548,6 @@ static void max3100_shutdown(struct uart_port *port)
static int max3100_startup(struct uart_port *port)
{
struct max3100_port *s = to_max3100_port(port);
- char b[12];
int ret;
dev_dbg(&s->spi->dev, "%s\n", __func__);
@@ -564,8 +563,7 @@ static int max3100_startup(struct uart_port *port)
s->parity = 0;
s->rts = 0;
- sprintf(b, "max3100-%d", s->minor);
- s->workqueue = create_freezable_workqueue(b);
+ s->workqueue = create_freezable_workqueue2("max3100-%d", s->minor);
if (!s->workqueue) {
dev_warn(&s->spi->dev, "cannot create workqueue\n");
return -EBUSY;