aboutsummaryrefslogtreecommitdiffstats
path: root/ipc/msgutil.c
diff options
context:
space:
mode:
authorStanislav Kinsbursky <skinsbursky@parallels.com>2013-01-04 15:34:58 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2013-01-04 16:11:45 -0800
commit85398aa8de1d68f44ff1b5d0ed9ceb2b0c51ce49 (patch)
tree945dba3d9fdb7a607134955b50cdeedf6520d2dd /ipc/msgutil.c
parentselftests: IPC message queue copy feature test (diff)
downloadlinux-dev-85398aa8de1d68f44ff1b5d0ed9ceb2b0c51ce49.tar.xz
linux-dev-85398aa8de1d68f44ff1b5d0ed9ceb2b0c51ce49.zip
ipc: simplify free_copy() call
Passing and checking of msgflg to free_copy() is redundant. This patch sets copy to NULL on declaration instead and checks for non-NULL in free_copy(). Note: in case of copy allocation failure, error is returned immediately. So no need to check for IS_ERR() in free_copy(). Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Cc: James Morris <jmorris@namei.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions