Staging: gdm724x: Use min instead of ternary operator
authorBhumika Goyal <bhumirks@gmail.com>
Fri, 26 Feb 2016 10:04:32 +0000 (15:34 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Mar 2016 22:48:04 +0000 (14:48 -0800)
commit6c6baa841662e1ab46353fee3c618d9f347ce06e
treebb60440e05c1c7c798411e5f4bb760fdfc8edcbe
parentbd743442237226ae2a5bf3bd4d7edce71f66788e
Staging: gdm724x: Use min instead of ternary operator

This patch replaces ternary operator with macro min as it shorter and
thus increases code readability. Macro min return the minimum of the
two compared values.
Made a semantic patch for changes:

@@
type T;
T x;
T y;
@@
(
- x < y ? x : y
+ min(x,y)
|
- x > y ? x : y
+ max(x,y)
)

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gdm724x/gdm_mux.c