diff options
author | Nathan Chancellor <natechancellor@gmail.com> | 2019-03-07 19:35:15 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-04-29 20:02:19 +0300 |
commit | e8baf7abcf56da68a03df77f51459acddeef4195 (patch) | |
tree | 17f2f4dc6d1e1300a1c6088878116728bda9b19d /include/trace/events/btrfs.h | |
parent | 262c96a3c3670bf2322b9a0c9d74e2a3d9e43be0 (diff) | |
download | linux-e8baf7abcf56da68a03df77f51459acddeef4195.tar.xz |
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/events/btrfs.h')
0 files changed, 0 insertions, 0 deletions