summaryrefslogtreecommitdiffstats
path: root/Documentation/rbtree.txt
diff options
context:
space:
mode:
authorStanislav Kinsbursky <skinsbursky@parallels.com>2013-01-05 00:34:58 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2013-01-05 01:11:45 +0100
commit85398aa8de1d68f44ff1b5d0ed9ceb2b0c51ce49 (patch)
tree945dba3d9fdb7a607134955b50cdeedf6520d2dd /Documentation/rbtree.txt
parentselftests: IPC message queue copy feature test (diff)
downloadlinux-85398aa8de1d68f44ff1b5d0ed9ceb2b0c51ce49.tar.xz
linux-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 'Documentation/rbtree.txt')
0 files changed, 0 insertions, 0 deletions