kernel/groups.c: remove return value of set_groups
authorWang YanQing <udknight@gmail.com>
Thu, 3 Apr 2014 21:48:26 +0000 (14:48 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 3 Apr 2014 23:21:05 +0000 (16:21 -0700)
commit7a0d93d053a38f0764eb309f153b87fc3617ced0
tree79ea014021610d9a6057c070e1208542fd014e33
parent34e46bba9cac29155d37764ead8fd364ea5a6e8a
kernel/groups.c: remove return value of set_groups

After commit 377afdd52b87 ("security: remove dead hook task_setgroups"),
set_groups will always return zero, so we could just remove return value
of set_groups.

This patch reduces code size, and simplfies code to use set_groups,
because we don't need to check its return value any more.

[akpm@linux-foundation.org: remove obsolete claims from set_groups() comment]
Signed-off-by: Wang YanQing <udknight@gmail.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Serge Hallyn <serge.hallyn@canonical.com>
Cc: Eric Paris <eparis@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/nfsd/auth.c
include/linux/cred.h
kernel/groups.c