Staging: rtl8723au: Use min macro instead of ternary operator
authorBhumika Goyal <bhumirks@gmail.com>
Fri, 26 Feb 2016 10:04:30 +0000 (15:34 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Mar 2016 06:09:09 +0000 (22:09 -0800)
commit4b25ce977e43f55f88df30a4d338b63bb597fdef
tree48b25a45f5d96f0f6c4fd37c85a6665ef5ac1de4
parent37491cd6fcf6474262fbff9c10208a8105573abf
Staging: rtl8723au: Use min macro 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/rtl8723au/os_dep/ioctl_cfg80211.c