]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2/dlm: clean up deadcode in dlm_master_request_handler()
authorpiaojun <piaojun@huawei.com>
Tue, 13 Dec 2016 00:41:14 +0000 (16:41 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 13 Dec 2016 02:55:06 +0000 (18:55 -0800)
commit8dff010d6d79ca94af2a79c61cccd86e1dafe113
tree8514f38efc5acb55e2ffe03f90001ac15bd2ee47
parent54bc35d8a497e1665b70ec1d80b9d97ad6eb1461
ocfs2/dlm: clean up deadcode in dlm_master_request_handler()

When 'dispatch_assert' is set, 'response' must be DLM_MASTER_RESP_YES,
and 'res' won't be null, so execution can't reach these two branch.

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