From: Michal Nazarewicz Date: Thu, 9 Oct 2014 22:30:15 +0000 (-0700) Subject: include/linux/kernel.h: deduplicate code implementing clamp* macros X-Git-Tag: fixes-against-v3.18-rc2~137^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c185b07fc9f24d52a864376ed22a6d84384b0c53;p=pandora-kernel.git 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 Cc: Mark Rustad Cc: "Kirsher, Jeffrey T" Cc: Hagen Paul Pfeifer Cc: Steven Rostedt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed