diff options
author | Michal Nazarewicz <[email protected]> | 2014-10-09 15:30:15 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2014-10-09 22:26:03 -0400 |
commit | c185b07fc9f24d52a864376ed22a6d84384b0c53 (patch) | |
tree | 03822f22af12a7b905ac7dde19406f72a9ba47a8 /net/lapb/lapb_subr.c | |
parent | 2e1d06e1c05af9dbe8a3bfddeefbf041ca637fff (diff) |
include/linux/kernel.h: deduplicate code implementing clamp* macros
Instead of open-coding clamp_t macro min_t and max_t the way clamp macro
does and instead of open-coding clamp_val simply use clamp_t.
Furthermore, normalise argument naming in the macros to be lo and hi.
Signed-off-by: Michal Nazarewicz <[email protected]>
Cc: Mark Rustad <[email protected]>
Cc: "Kirsher, Jeffrey T" <[email protected]>
Cc: Hagen Paul Pfeifer <[email protected]>
Cc: Steven Rostedt <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions