diff --git a/arch/risc-v/src/rv32m1/rv32m1_serial.c b/arch/risc-v/src/rv32m1/rv32m1_serial.c index 0c1740b1ae8..5ea822e036c 100644 --- a/arch/risc-v/src/rv32m1/rv32m1_serial.c +++ b/arch/risc-v/src/rv32m1/rv32m1_serial.c @@ -491,7 +491,7 @@ static void up_set_format(struct uart_dev_s *dev) /* Get the closer one. i.e. the minimum difference */ tdiff = priv->baud - baud; - tsbr ++; + tsbr++; } /* Pick up the best osr and sbr with the minimum diff */