From: Eric Biggers Date: Tue, 31 Dec 2019 18:04:44 +0000 (-0600) Subject: ext4: add missing braces in ext4_ext_drop_refs() X-Git-Tag: v5.6-rc1~113^2~18 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=de7454854d6e8e3c3585c6df4b0b99017820aa0f;p=users%2Fjedix%2Flinux-maple.git ext4: add missing braces in ext4_ext_drop_refs() For clarity, add braces to the loop in ext4_ext_drop_refs(). Signed-off-by: Eric Biggers Link: https://lore.kernel.org/r/20191231180444.46586-9-ebiggers@kernel.org Signed-off-by: Theodore Ts'o Reviewed-by: Ritesh Harjani Reviewed-by: Jan Kara --- diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 6f13071d76d5..393533ff0527 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c @@ -690,11 +690,12 @@ void ext4_ext_drop_refs(struct ext4_ext_path *path) if (!path) return; depth = path->p_depth; - for (i = 0; i <= depth; i++, path++) + for (i = 0; i <= depth; i++, path++) { if (path->p_bh) { brelse(path->p_bh); path->p_bh = NULL; } + } } /*