Xue jiufei
2012-Dec-22 08:38 UTC
[Ocfs2-devel] [PATCH] ocfs2: cleanup error handling in ocfs2_super_lock
There is no need to determine whether ocfs2_should_refresh_lock_res() returns less than 0 because it never returns such a value. Signed-off-by: xuejiufei <xuejiufei at huawei.com> --- fs/ocfs2/dlmglue.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/fs/ocfs2/dlmglue.c b/fs/ocfs2/dlmglue.c index 4f7795f..e35ee3e 100644 --- a/fs/ocfs2/dlmglue.c +++ b/fs/ocfs2/dlmglue.c @@ -2544,10 +2544,6 @@ int ocfs2_super_lock(struct ocfs2_super *osb, * refreshed, so we do it here. Of course, making sense of * everything is up to the caller :) */ status = ocfs2_should_refresh_lock_res(lockres); - if (status < 0) { - mlog_errno(status); - goto bail; - } if (status) { status = ocfs2_refresh_slot_info(osb); -- 1.7.8.6