From: Stanislav Kinsbursky Date: Fri, 4 Jan 2013 23:34:58 +0000 (-0800) Subject: ipc: simplify free_copy() call X-Git-Tag: v3.8-rc3~16^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85398aa8de1d68f44ff1b5d0ed9ceb2b0c51ce49;p=pandora-kernel.git 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 Cc: "Eric W. Biederman" Cc: James Morris Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed