ocfs2/dlm: clean up unused stack variable in dlm_do_local_ast()
authorChangwei Ge <ge.changwei@h3c.com>
Thu, 5 Apr 2018 23:19:07 +0000 (16:19 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 6 Apr 2018 04:36:22 +0000 (21:36 -0700)
Link: http://lkml.kernel.org/r/1521116681-14602-2-git-send-email-ge.changwei@h3c.com
Signed-off-by: Changwei Ge <ge.changwei@h3c.com>
Cc: Mark Fasheh <mark@fasheh.com>
Cc: Joseph Qi <jiangqi903@gmail.com>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Changwei Ge <ge.changwei@h3c.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/dlm/dlmast.c

index fd6bbbbd7d78df8f94534076f068f470c0f8f9d2..39831fc2fd52c12deac013d36079411daf946d5e 100644 (file)
@@ -224,14 +224,12 @@ void dlm_do_local_ast(struct dlm_ctxt *dlm, struct dlm_lock_resource *res,
                      struct dlm_lock *lock)
 {
        dlm_astlockfunc_t *fn;
-       struct dlm_lockstatus *lksb;
 
        mlog(0, "%s: res %.*s, lock %u:%llu, Local AST\n", dlm->name,
             res->lockname.len, res->lockname.name,
             dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)),
             dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie)));
 
-       lksb = lock->lksb;
        fn = lock->ast;
        BUG_ON(lock->ml.node != dlm->node_num);