aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace
diff options
context:
space:
mode:
authorNathan Chancellor <natechancellor@gmail.com>2019-03-07 09:35:15 -0700
committerDavid Sterba <dsterba@suse.com>2019-04-29 19:02:19 +0200
commite8baf7abcf56da68a03df77f51459acddeef4195 (patch)
tree17f2f4dc6d1e1300a1c6088878116728bda9b19d /include/trace
parentbtrfs: refactor btrfs_set_prop and add btrfs_set_prop_trans (diff)
downloadlinux-dev-e8baf7abcf56da68a03df77f51459acddeef4195.tar.xz
linux-dev-e8baf7abcf56da68a03df77f51459acddeef4195.zip
btrfs: Turn an 'else if' into an 'else' in btrfs_uuid_tree_add
When building with -Wsometimes-uninitialized, Clang warns: fs/btrfs/uuid-tree.c:129:13: warning: variable 'eb' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] fs/btrfs/uuid-tree.c:129:13: warning: variable 'offset' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] Clang can't tell that all cases are covered with this final else if. Just turn it into an else so that it is clear. Link: https://github.com/ClangBuiltLinux/linux/issues/385 Suggested-by: Nick Desaulniers <ndesaulniers@google.com> Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'include/trace')
0 files changed, 0 insertions, 0 deletions