Commit 6d4a6b5
btrfs: remove unused variable in btrfs_{start,write}_dirty_block_groups()
Clang's version of -Wunused-but-set-variable recently gained support for
unary operations, which reveals two unused variables:
fs/btrfs/block-group.c:2949:6: error: variable 'num_started' set but not used [-Werror,-Wunused-but-set-variable]
int num_started = 0;
^
fs/btrfs/block-group.c:3116:6: error: variable 'num_started' set but not used [-Werror,-Wunused-but-set-variable]
int num_started = 0;
^
2 errors generated.
These variables appear to be unused from their introduction, so just
remove them to silence the warnings.
Fixes: c9dc4c6 ("Btrfs: two stage dirty block group writeout")
Fixes: 1bbc621 ("Btrfs: allow block group cache writeout outside critical section in commit")
CC: stable@vger.kernel.org # 5.4+
Link: ClangBuiltLinux#1614
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: David Sterba <dsterba@suse.com>1 parent 9435be7 commit 6d4a6b5
1 file changed
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2946 | 2946 | | |
2947 | 2947 | | |
2948 | 2948 | | |
2949 | | - | |
2950 | 2949 | | |
2951 | 2950 | | |
2952 | 2951 | | |
| |||
3012 | 3011 | | |
3013 | 3012 | | |
3014 | 3013 | | |
3015 | | - | |
3016 | 3014 | | |
3017 | 3015 | | |
3018 | 3016 | | |
| |||
3113 | 3111 | | |
3114 | 3112 | | |
3115 | 3113 | | |
3116 | | - | |
3117 | 3114 | | |
3118 | 3115 | | |
3119 | 3116 | | |
| |||
3171 | 3168 | | |
3172 | 3169 | | |
3173 | 3170 | | |
3174 | | - | |
3175 | 3171 | | |
3176 | 3172 | | |
3177 | 3173 | | |
| |||
0 commit comments