Re: [PATCH v3] tty: serial: Modify the use of dev_err_probe()

From: Jiri Slaby
Date: Wed Aug 20 2025 - 01:20:51 EST


On 19. 08. 25, 14:09, Xichao Zhao wrote:
The dev_err_probe() doesn't do anything when error is '-ENOMEM'.
Make the following two changes:
(1) Replace -ENOMEM with -ENOSPC in max3100_probe().
(2) Just return -ENOMEM instead in max310x_probe().

Signed-off-by: Xichao Zhao <zhao.xichao@xxxxxxxx>

Reviewed-by: Jiri Slaby <jirislaby@xxxxxxxxxx>

--
js
suse labs