diff options
author | Stanislav Kinsbursky <skinsbursky@parallels.com> | 2013-01-05 00:34:58 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-01-05 01:11:45 +0100 |
commit | 85398aa8de1d68f44ff1b5d0ed9ceb2b0c51ce49 (patch) | |
tree | 945dba3d9fdb7a607134955b50cdeedf6520d2dd /drivers/edac | |
parent | selftests: IPC message queue copy feature test (diff) | |
download | linux-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 'drivers/edac')
0 files changed, 0 insertions, 0 deletions