kernel/groups.c: use sort library function
authorRasmus Villemoes <[email protected]>
Mon, 10 Jul 2017 22:51:17 +0000 (15:51 -0700)
committerLinus Torvalds <[email protected]>
Mon, 10 Jul 2017 23:32:34 +0000 (16:32 -0700)
commitb7b2562f7252878e18de60c24f320052076f9de8
treef5b30652d73cbfe14e010044489bc06b37d62bcf
parent9dcdcea11491f6eee65bd1b352293ca01e4b7997
kernel/groups.c: use sort library function

setgroups is not exactly a hot path, so we might as well use the library
function instead of open-coding the sorting.  Saves ~150 bytes.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Rasmus Villemoes <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Alexey Dobriyan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
kernel/groups.c