Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ddab1a3b authored by Nicolas Kaiser's avatar Nicolas Kaiser Committed by David S. Miller
Browse files

SuperH IrDA: correct Baud rate error correction



It looks to me as if the second value of rate_err_array is intended
to be a decimal 625. However, with a leading 0 it becomes an octal
constant, and as such evaluates to a decimal 405.

Signed-off-by: default avatarNicolas Kaiser <nikai@nikai.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 33ac0b84
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -258,7 +258,7 @@ static int sh_sir_set_baudrate(struct sh_sir_self *self, u32 baudrate)

	/* Baud Rate Error Correction x 10000 */
	u32 rate_err_array[] = {
		0000, 0625, 1250, 1875,
		   0,  625, 1250, 1875,
		2500, 3125, 3750, 4375,
		5000, 5625, 6250, 6875,
		7500, 8125, 8750, 9375,