]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ipc: simplify message copying
authorStanislav Kinsbursky <skinsbursky@parallels.com>
Thu, 15 Nov 2012 02:38:45 +0000 (13:38 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 15 Nov 2012 06:32:18 +0000 (17:32 +1100)
commit2eeb60ac7c415236bf6039d77e3091087e3953d9
tree7320e7e2a6e6cbc9d487e4dfd368a0a9cdae62f7
parent016b8c29e9248948fffce1bd23c739f0abebb075
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