aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorStanislav Kinsbursky <[email protected]>2013-01-04 15:34:58 -0800
committerLinus Torvalds <[email protected]>2013-01-04 16:11:45 -0800
commit85398aa8de1d68f44ff1b5d0ed9ceb2b0c51ce49 (patch)
tree945dba3d9fdb7a607134955b50cdeedf6520d2dd /lib/memory-notifier-error-inject.c
parent3a665531a3b7c2ad2c87903b24646be6916340e4 (diff)
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 <[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]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions