From: Joseph Qi Date: Thu, 8 Jan 2015 22:32:09 +0000 (-0800) Subject: ocfs2: remove bogus check in dlm_process_recovery_data X-Git-Tag: fixes-v4.0-rc1~328^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb4f73b4ca6c04f31af6f1ff1bf11b5020a1216f;p=pandora-kernel.git ocfs2: remove bogus check in dlm_process_recovery_data In dlm_process_recovery_data, only when dlm_new_lock failed the ret will be set to -ENOMEM. And in this case, newlock is definitely NULL. So test newlock is meaningless, remove it. Signed-off-by: Joseph Qi Reviewed-by: Alex Chen Reviewed-by: Mark Fasheh Cc: Joel Becker Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed