mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 12:10:52 -04:00
macintosh/ams-input: Use true and false for boolean values
Assign true or false to boolean variables instead of an integer value. This issue was detected with the help of Coccinelle Signed-off-by: Gustavo A. R. Silva <[email protected]> Reviewed-by: Michael Hanselmann <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
This commit is contained in:
parent
4f256d5614
commit
516c32f64f
1 changed files with 2 additions and 2 deletions
|
|
@ -91,7 +91,7 @@ static int ams_input_enable(void)
|
|||
return error;
|
||||
}
|
||||
|
||||
joystick = 1;
|
||||
joystick = true;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -104,7 +104,7 @@ static void ams_input_disable(void)
|
|||
ams_info.idev = NULL;
|
||||
}
|
||||
|
||||
joystick = 0;
|
||||
joystick = false;
|
||||
}
|
||||
|
||||
static ssize_t ams_input_show_joystick(struct device *dev,
|
||||
|
|
|
|||
Loading…
Reference in a new issue