All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] [PATCH] ocfs2/dlm: clean up useless BUG_ON default case in dlm_finalize_reco_handler()
@ 2016-10-10  9:26 piaojun
  0 siblings, 0 replies; only message in thread
From: piaojun @ 2016-10-10  9:26 UTC (permalink / raw)
  To: ocfs2-devel

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

Signed-off-by: Jun Piao <piaojun@huawei.com>
---
 fs/ocfs2/dlm/dlmrecovery.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/fs/ocfs2/dlm/dlmrecovery.c b/fs/ocfs2/dlm/dlmrecovery.c
index dd5cb8b..74407c6 100644
--- a/fs/ocfs2/dlm/dlmrecovery.c
+++ b/fs/ocfs2/dlm/dlmrecovery.c
@@ -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",
-- 
1.9.5.msysgit.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-10-10  9:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-10  9:26 [Ocfs2-devel] [PATCH] ocfs2/dlm: clean up useless BUG_ON default case in dlm_finalize_reco_handler() piaojun

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.