Re: [PATCH v3 1/2] serial: core: Unify uart_get_baud_rate() success return paths
From: Andy Shevchenko
Date: Wed Nov 04 2026 - 06:20:27 EST
On Tue, Nov 03, 2026 at 10:07:44PM +0000, Maciej W. Rozycki wrote:
> In preparation to adding extra return actions merge the two success
> return paths in uart_get_baud_rate() into one.
>
> Since as from commit 091ea8e5d34e ("serial: core: prevent division by
> zero by always returning non-zero baud rate") it is now guaranteed that
> the B0 baud rate is within [min; max], deferring to the regular return
> path in the B0 case causes no functional change.
>
> That is as long as max >= max(min, 9600), which I believe is always the
> case and none of UART hardware our drivers provide support for has its
> highest baud rate below 9600.
Same issue with the commit message — too many trailing white spaces.
After fixing that, feel free to add
Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
--
With Best Regards,
Andy Shevchenko