summaryrefslogtreecommitdiff
path: root/fs/btrfs/ioctl.c
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2021-04-30 21:06:55 +0300
committerDavid Sterba <dsterba@suse.com>2021-05-04 19:05:15 +0300
commit77364faf21b4105ee5adbb4844fdfb461334d249 (patch)
treec21766554b7d6f171fe308d5456ee450bb927d51 /fs/btrfs/ioctl.c
parent784daf2b9628f2d0117f1f0b578cfe5ab6634919 (diff)
downloadlinux-77364faf21b4105ee5adbb4844fdfb461334d249.tar.xz
btrfs: initialize return variable in cleanup_free_space_cache_v1
Static analysis reports this problem free-space-cache.c:3965:2: warning: Undefined or garbage value returned return ret; ^~~~~~~~~~ ret is set in the node handling loop. Treat doing nothing as a success and initialize ret to 0, although it's unlikely the loop would be skipped. We always have block groups, but as it could lead to transaction abort in the caller it's better to be safe. CC: stable@vger.kernel.org # 5.12+ Signed-off-by: Tom Rix <trix@redhat.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ioctl.c')
0 files changed, 0 insertions, 0 deletions