summaryrefslogtreecommitdiff
path: root/cmds-check.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2014-12-30 15:05:50 +0100
committerDavid Sterba <dsterba@suse.cz>2014-12-30 15:48:55 +0100
commit01a9f4308ba2625dbfb83e3fad2bcc6c2e512b9f (patch)
tree47a1c7d8f51b4799a2420dcd874e682c179f59fa /cmds-check.c
parent8499af348407909801cf87c6e1e7426c930ae567 (diff)
btrfs-progs: check, missing parens around compound block in find_normal_file_extent
Resolves-coverity-id: 1260248 Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'cmds-check.c')
-rw-r--r--cmds-check.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmds-check.c b/cmds-check.c
index 71e4f4f3..d2d218a8 100644
--- a/cmds-check.c
+++ b/cmds-check.c
@@ -2160,9 +2160,10 @@ static int find_normal_file_extent(struct btrfs_root *root, u64 ino)
fi = btrfs_item_ptr(path->nodes[0], path->slots[0],
struct btrfs_file_extent_item);
type = btrfs_file_extent_type(path->nodes[0], fi);
- if (type != BTRFS_FILE_EXTENT_INLINE)
+ if (type != BTRFS_FILE_EXTENT_INLINE) {
ret = 1;
goto out;
+ }
}
out:
btrfs_free_path(path);