Skip to content
Commit c0d7a3b2 authored by Lu Yao's avatar Lu Yao Committed by Greg Kroah-Hartman
Browse files

btrfs: scrub: initialize ret in scrub_simple_mirror() to fix compilation warning

[ Upstream commit b4e585ff

 ]

The following error message is displayed:
  ../fs/btrfs/scrub.c:2152:9: error: ‘ret’ may be used uninitialized
  in this function [-Werror=maybe-uninitialized]"

Compiler version: gcc version: (Debian 10.2.1-6) 10.2.1 20210110

Reviewed-by: default avatarBoris Burkov <boris@bur.io>
Signed-off-by: default avatarLu Yao <yaolu@kylinos.cn>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent c5179588
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment