Skip to content
This repository was archived by the owner on Jan 12, 2021. It is now read-only.

Commit 3225b80

Browse files
akpm00sfrothwell
authored andcommitted
ocfs2-flock-drop-cross-node-lock-when-failed-locally-checkpatch-fixes
WARNING: braces {} are not necessary for single statement blocks torvalds#26: FILE: fs/ocfs2/locks.c:85: + if (ret) { + ocfs2_file_unlock(file); + } total: 0 errors, 1 warnings, 9 lines checked ./patches/ocfs2-flock-drop-cross-node-lock-when-failed-locally.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 <[email protected]> Cc: Mark Fasheh <[email protected]> Cc: Wengang Wang <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent d4c68e3 commit 3225b80

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fs/ocfs2/locks.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,8 @@ static int ocfs2_do_flock(struct file *file, struct inode *inode,
8282
}
8383

8484
ret = flock_lock_file_wait(file, fl);
85-
if (ret) {
85+
if (ret)
8686
ocfs2_file_unlock(file);
87-
}
8887

8988
out:
9089
mutex_unlock(&fp->fp_mutex);

0 commit comments

Comments
 (0)