diff options
author | Serge Semin <Sergey.Semin@baikalelectronics.ru> | 2020-07-23 03:33:55 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-07-29 18:14:39 +0300 |
commit | 442fdef1b931181a45ce4fce68b7675f7a78ec3a (patch) | |
tree | e568205828b6dac71eab0cb9316c1095de5f2b70 /scripts/bpf_helpers_doc.py | |
parent | 868f3ee6e452bc2b89e68183a1700fcbbe0807b1 (diff) | |
download | linux-442fdef1b931181a45ce4fce68b7675f7a78ec3a.tar.xz |
serial: 8250_dw: Simplify the ref clock rate setting procedure
Really instead of twice checking the clk_round_rate() return value
we could do it once, and if it isn't error the clock rate can be changed.
By doing so we decrease a number of ret-value tests and remove a weird
goto-based construction implemented in the dw8250_set_termios() method.
Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Link: https://lore.kernel.org/r/20200723003357.26897-3-Sergey.Semin@baikalelectronics.ru
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions