]> 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>
Tue, 13 Nov 2012 05:15:57 +0000 (16:15 +1100)
commit9597762b1896accbb5c4f66933ca10bd5bfb8fe0
treeb90846535c98139979dc163ecc4da74dd70c549d
parent0b9c0370b8453097e89de4521c30f29084f0629b
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