diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2016-02-26 15:34:31 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-11 22:09:09 -0800 |
commit | c754db403d740827e49f5f9dedd9594ff55ccbe7 (patch) | |
tree | f7f15fad0e832e32094057f0e00e69b6732507db /tools/perf/scripts/python/sched-migration.py | |
parent | 16ccad0475796c0acc084a51a49c9a86051586db (diff) |
Staging: rdma: 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>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions