mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
replace nested max/min macros with {max,min}3 macro
Use the new {max,min}3 macros to save some cycles and bytes on the stack.
This patch substitutes trivial nested macros with their counterpart.
Signed-off-by: Hagen Paul Pfeifer <[email protected]>
Cc: Joe Perches <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Hartley Sweeten <[email protected]>
Cc: Russell King <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Herbert Xu <[email protected]>
Cc: Roland Dreier <[email protected]>
Cc: Sean Hefty <[email protected]>
Cc: Pekka Enberg <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
f27c85c56b
commit
732eacc054
8 changed files with 9 additions and 12 deletions
|
|
@ -901,7 +901,7 @@ static int transfer_objects(struct array_cache *to,
|
|||
struct array_cache *from, unsigned int max)
|
||||
{
|
||||
/* Figure out how many entries to transfer */
|
||||
int nr = min(min(from->avail, max), to->limit - to->avail);
|
||||
int nr = min3(from->avail, max, to->limit - to->avail);
|
||||
|
||||
if (!nr)
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue