]> git.ipfire.org Git - people/ms/linux.git/commit
staging: media: Remove ternary operator
authorGargi Sharma <gs051095@gmail.com>
Sun, 19 Feb 2017 19:14:18 +0000 (00:44 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Mar 2017 08:17:02 +0000 (09:17 +0100)
commit0743a78fde7cc561ad53b657be693e7f9981a73a
tree90e473ca82352e4d14235a0cd39dca3db2630cec
parent47db0f6c9a2210dc5a7c45551d63d7d69b5600a6
staging: media: Remove ternary operator

Relational and logical operators evaluate to either true or false.
Explicit conversion is not needed so remove the ternary operator.
Done using coccinelle:

@r@
expression A,B;
symbol true,false;
binary operator b = {==,!=,&&,||,>=,<=,>,<};
@@
- (A b B) ? true : false
+ A b B

Signed-off-by: Gargi Sharma <gs051095@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/platform/bcm2835/controls.c