Skip to content

Commit

Permalink
SuperH IrDA: correct Baud rate error correction
Browse files Browse the repository at this point in the history
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: Nicolas Kaiser <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
nikai3d authored and davem330 committed Nov 21, 2010
1 parent 33ac0b8 commit ddab1a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/irda/sh_sir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ddab1a3

Please sign in to comment.