]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2/dlm: clean up useless BUG_ON default case in dlm_finalize_reco_handler()
authorpiaojun <piaojun@huawei.com>
Tue, 13 Dec 2016 00:41:08 +0000 (16:41 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 13 Dec 2016 02:55:06 +0000 (18:55 -0800)
commita767c75a6b47b594abcbccd560c8e6399637a6d1
treeca31a5211b9ad4631bb801eb046fffc1cce48af0
parent916e34b1450cd15bb9cfe6cf1358963db556deee
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.

Link: http://lkml.kernel.org/r/57FB5EB2.7050002@huawei.com
Signed-off-by: Jun Piao <piaojun@huawei.com>
Cc: Mark Fasheh <mfasheh@versity.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Joseph Qi <jiangqi903@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/dlm/dlmrecovery.c