mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
imx: serial: fix one bit field type
"have_rtscts" is assigned 1, while it is declared int:1, two's complement, which can hold 0 and -1 only. The code works, as the upper bits are cut off, and tests are done against 0 only. Nonetheless, correctly declaring the bit field as unsigned int:1 renders the code more robust. Signed-off-by: Daniel Glöckner <[email protected]> Signed-off-by: Oskar Schirmer <[email protected]> Signed-off-by: Alan Cox <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
d3810cd4d7
commit
26bbb3ff1f
1 changed files with 1 additions and 1 deletions
|
|
@ -211,7 +211,7 @@ struct imx_port {
|
|||
struct timer_list timer;
|
||||
unsigned int old_status;
|
||||
int txirq,rxirq,rtsirq;
|
||||
int have_rtscts:1;
|
||||
unsigned int have_rtscts:1;
|
||||
struct clk *clk;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue