ipc: simplify message copying
authorStanislav Kinsbursky <[email protected]>
Fri, 4 Jan 2013 23:35:01 +0000 (15:35 -0800)
committerLinus Torvalds <[email protected]>
Sat, 5 Jan 2013 00:11:46 +0000 (16:11 -0800)
commit51eeacaa07d1372a7bc9612548ffe6cd846f4f2f
treed92e69517b9973d5c2dd4697e3b38be6539bc2ca
parentb30efe2775ee0a1d911514292579770b214d31c3
ipc: simplify message copying

Remove 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 <[email protected]>
Cc: "Eric W. Biederman" <[email protected]>
Cc: James Morris <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
ipc/msg.c
ipc/msgutil.c