Skip to contentSkip to conversation

ocfs2/dlm: clean up useless BUG_ON default case in dlm_finalize_reco_handler()

PATCH Applied piaojun 1 participant 1 message Oct 10, 2016 OCFS2

lore
Share & tools
lore

piaojun

author
#0 lore raw

PATCH 1/1 ocfs2/dlm: clean up useless BUG_ON default case in dlm_finalize_reco_handler()

The value of 'stage' must be between 1 and 2, so the switch can't reach the default case.

---
 fs/ocfs2/dlm/dlmrecovery.c | 2 --
 1 file changed, 2 deletions(-)
fs/ocfs2/dlm/dlmrecovery.c +0 -2
index dd5cb8b..74407c6 100644
@@ -2966,8 +2966,6 @@ int dlm_finalize_reco_handler(struct o2net_msg *msg, u32 len, void *data,
 			spin_unlock(&dlm->spinlock);
 			dlm_kick_recovery_thread(dlm);
 			break;
-		default:
-			BUG();
 	}
 
 	mlog(0, "%s: recovery done, reco master was %u, dead now %u, master now %u\n",
Signature · 1 line
1.9.5.msysgit.1