Skip to contentSkip to conversation

ocfs2: cleanup error handling in ocfs2_super_lock

PATCH New Xue jiufei 1 participant 1 message Dec 22, 2012 OCFS2

lore
Share & tools
lore

Xue jiufei

author
#0 lore raw

PATCH 1/1 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.

---
 fs/ocfs2/dlmglue.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
fs/ocfs2/dlmglue.c +0 -4
index 4f7795f..e35ee3e 100644
@@ -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);
 
Signature · 1 line
1.7.8.6