Skip to content

Commit fa7e6d7

Browse files
akpm00hnaz
authored andcommitted
o2dlm-fix-null-pointer-dereference-in-o2dlm_blocking_ast_wrapper-checkpatch-fixes
WARNING: else is not generally useful after a break or return torvalds#47: FILE: fs/ocfs2/dlm/dlmast.c:392: + break; + else total: 0 errors, 1 warnings, 15 lines checked ./patches/o2dlm-fix-null-pointer-dereference-in-o2dlm_blocking_ast_wrapper.patch has style problems, please review. If any of these errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. Please run checkpatch prior to sending patches Cc: Joel Becker <jlbec@evilplan.org> Cc: Mark Fasheh <mfasheh@suse.com> Cc: Srinivas Eeda <srinivas.eeda@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent b4a536d commit fa7e6d7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fs/ocfs2/dlm/dlmast.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -389,8 +389,7 @@ int dlm_proxy_ast_handler(struct o2net_msg *msg, u32 len, void *data,
389389
if (lock->ml.cookie == cookie) {
390390
if (lock->unlock_pending)
391391
break;
392-
else
393-
goto do_ast;
392+
goto do_ast;
394393
}
395394
}
396395

0 commit comments

Comments
 (0)