ocfs2/dlm: clean up useless BUG_ON default case in dlm_finalize_reco_handler()
PATCH 11/123 ocfs2/dlm: clean up useless BUG_ON default case in dlm_finalize_reco_handler()
From: piaojun <[email protected]>
Subject: 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.
Signed-off-by Jun Piao <[email protected]>
Cc Mark Fasheh <[email protected]>
Cc Joel Becker <[email protected]>
Cc Junxiao Bi <[email protected]>
Cc Joseph Qi <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
fs/ocfs2/dlm/dlmrecovery.c | 2 -- 1 file changed, 2 deletions(-)
fs/ocfs2/dlm/dlmrecovery.c renamed from fs/ocfs2/dlm/dlmrecovery.c~ocfs2-dlm-clean-up-useless-bug_on-default-case-in-dlm_finalize_reco_handler +0 -2
@@ -2966,8 +2966,6 @@ int dlm_finalize_reco_handler(struct o2nspin_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",
_