From: Kari Argillander Date: Tue, 7 Sep 2021 08:34:40 +0000 (+0300) Subject: fs/ntfs3: Remove braces from single statment block X-Git-Tag: v5.15-rc6~33^2~46 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2829e39e0e8add377508b3c6ef4cf48e6db324fb;p=thirdparty%2Fkernel%2Flinux.git fs/ntfs3: Remove braces from single statment block Remove braces from single statment block as they are not needed. Also Linux kernel coding style guide recommend this and checkpatch warn about this. Signed-off-by: Kari Argillander Signed-off-by: Konstantin Komarov --- diff --git a/fs/ntfs3/frecord.c b/fs/ntfs3/frecord.c index 2f8af53da219c..1e1a09034f65b 100644 --- a/fs/ntfs3/frecord.c +++ b/fs/ntfs3/frecord.c @@ -2903,9 +2903,8 @@ bool ni_remove_name_undo(struct ntfs_inode *dir_ni, struct ntfs_inode *ni, memcpy(Add2Ptr(attr, SIZEOF_RESIDENT), de + 1, de_key_size); mi_get_ref(&ni->mi, &de->ref); - if (indx_insert_entry(&dir_ni->dir, dir_ni, de, sbi, NULL, 1)) { + if (indx_insert_entry(&dir_ni->dir, dir_ni, de, sbi, NULL, 1)) return false; - } } return true;