]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ipc: simplify message copying
authorStanislav Kinsbursky <skinsbursky@parallels.com>
Fri, 9 Nov 2012 03:05:09 +0000 (14:05 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 9 Nov 2012 03:09:08 +0000 (14:09 +1100)
commit4878a27c2b11ba58b313c6c9cf2bb77278a63846
tree02c1c9e0d400e822d7a3bca0a8d22f3e33ec87f3
parent1107913ee85c63d762a4c01b4b38667a96dbb4a1
ipc: simplify message copying

Remvoe the redundant and confusing fill_copy().  Also add copy_msg() check
for error.  In this case exit from the function have to be done instead of
break, because further code interprets any error as EAGAIN.

Also define copy_msg() for the case when CONFIG_CHECKPOINT_RESTORE is
disabled.

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>
ipc/msg.c
ipc/msgutil.c