commit | 3589d3c9e39889fcac8fa0cb9f5bb3006d7d0d51 | [log] [tgz] |
---|---|---|
author | Alison Schofield <amsfield22@gmail.com> | Wed Feb 24 09:20:17 2016 -0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Mar 11 22:09:09 2016 -0800 |
tree | 592a1ef9d23a51fc7aa4913731791e6613e35644 | |
parent | 7ce1b3d3caa712686eaf295a200718b93dcd57da [diff] |
staging: fbtft: replace ternary operator with min macro Use macro min() to get the minimum of two values for brevity and readability. 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: Alison Schofield <amsfield22@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>