summaryrefslogtreecommitdiff
path: root/drivers/staging/rts5208/xd.c
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2016-02-26 13:04:34 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-03-12 09:09:09 +0300
commiteff8bf82432b6a3cd367e765a1806ebe3d1556e8 (patch)
treed404e18a1151fcb1b6c89e5988180e7526dc660a /drivers/staging/rts5208/xd.c
parent51a4731133410a63bcc833068dba4a0e2ec1fcea (diff)
downloadlinux-eff8bf82432b6a3cd367e765a1806ebe3d1556e8.tar.xz
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>
Diffstat (limited to 'drivers/staging/rts5208/xd.c')
0 files changed, 0 insertions, 0 deletions