Skip to content

Commit b6ea3e6

Browse files
fdmananakdave
authored andcommitted
btrfs: remove pointless initialization at btrfs_delayed_refs_rsv_release()
There's no point in initializing to 0 the local variable 'released' as we don't use it before the next assignment to it. So remove the initialization. This may help avoid some warnings with clang tools such as the one reported/fixed by commit 966de47 ("btrfs: remove redundant initialization of variables in log_new_ancestors"). Reviewed-by: Josef Bacik <[email protected]> Signed-off-by: Filipe Manana <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 3ee56a5 commit b6ea3e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/btrfs/delayed-ref.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ void btrfs_delayed_refs_rsv_release(struct btrfs_fs_info *fs_info, int nr)
6666
{
6767
struct btrfs_block_rsv *block_rsv = &fs_info->delayed_refs_rsv;
6868
const u64 num_bytes = btrfs_calc_delayed_ref_bytes(fs_info, nr);
69-
u64 released = 0;
69+
u64 released;
7070

7171
released = btrfs_block_rsv_release(fs_info, block_rsv, num_bytes, NULL);
7272
if (released)

0 commit comments

Comments
 (0)