* [PATCH] tty: use isdigit() in tty_find_polling_driver()
@ 2026-11-06 9:01 Thorsten Blum
2026-11-06 9:04 ` sashiko-bot
0 siblings, 1 reply; 2+ messages in thread
From: Thorsten Blum @ 2026-11-06 9:01 UTC (permalink / raw)
To: Greg Kroah-Hartman, Jiri Slaby; +Cc: Thorsten Blum, linux-kernel, linux-serial
Use isdigit() to replace the open-coded implementation.
Signed-off-by: Thorsten Blum <blum@kernel.org>
---
drivers/tty/tty_io.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c
index 1a6c8a1bc764..3575310c72e0 100644
--- a/drivers/tty/tty_io.c
+++ b/drivers/tty/tty_io.c
@@ -383,7 +383,7 @@ struct tty_driver *tty_find_polling_driver(char *name, int *line)
char *str, *stp;
for (str = name; *str; str++)
- if ((*str >= '0' && *str <= '9') || *str == ',')
+ if (isdigit(*str) || *str == ',')
break;
if (!*str)
return NULL;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] tty: use isdigit() in tty_find_polling_driver()
2026-11-06 9:01 [PATCH] tty: use isdigit() in tty_find_polling_driver() Thorsten Blum
@ 2026-11-06 9:04 ` sashiko-bot
0 siblings, 0 replies; 2+ messages in thread
From: sashiko-bot @ 2026-11-06 9:04 UTC (permalink / raw)
To: Thorsten Blum; +Cc: linux-serial
> Use isdigit() to replace the open-coded implementation.
>
> Signed-off-by: Thorsten Blum <blum@kernel.org>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261106090122.2265-2-blum@kernel.org?part=1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-06 9:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-06 9:01 [PATCH] tty: use isdigit() in tty_find_polling_driver() Thorsten Blum
2026-11-06 9:04 ` sashiko-bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox