summaryrefslogtreecommitdiff
path: root/drivers/staging/rts5208/rtsx_transport.c
diff options
context:
space:
mode:
authorGargi Sharma <gs051095@gmail.com>2017-03-07 23:50:27 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-09 18:50:05 +0100
commitc95d2e87fca1402e1a6a2a8577bf78abd401671f (patch)
tree782f340d6fb7ee1b7333402fc3e30759ff2b89cb /drivers/staging/rts5208/rtsx_transport.c
parent9304b5b0d4fe8498d3d059db4bb8a7de253355a5 (diff)
staging: gdm724x: Replace ternary operator with min macro
Use macro min() to get the minimum of two values for brevity and readability. The macro MUX_TX_MAX_SIZE has a value of 2048 which is well within the integer limits. This check was done manually. Found using Coccinelle: @@ type T; T x; T y; @@ ( - x < y ? x : y + min(x,y) | - x > y ? x : y + max(x,y) ) Signed-off-by: Gargi Sharma <gs051095@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rts5208/rtsx_transport.c')
0 files changed, 0 insertions, 0 deletions