]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
Staging: rts5208: Use min instead of ternary operator
authorBhumika Goyal <bhumirks@gmail.com>
Fri, 26 Feb 2016 10:04:34 +0000 (15:34 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Mar 2016 06:09:09 +0000 (22:09 -0800)
commiteff8bf82432b6a3cd367e765a1806ebe3d1556e8
treed404e18a1151fcb1b6c89e5988180e7526dc660a
parent51a4731133410a63bcc833068dba4a0e2ec1fcea
Staging: rts5208: Use min instead of ternary operator

This patch replaces ternary operator with macro min as it shorter and
thus increases code readability. Macro min returns 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/rts5208/sd.c