Skip to content
Commit a6ca692e authored by Josef Bacik's avatar Josef Bacik Committed by David Sterba
Browse files

btrfs: fix uninitialized variable warning in run_one_async_start



With -Wmaybe-uninitialized compiler complains about ret being possibly
uninitialized, which isn't possible as the WQ_ constants are set only
from our code, however we can handle the default case and get rid of the
warning.

The value is set to BLK_STS_IOERR so it does not issue any IO and could
be potentially detected, but this is basically a "cannot happen" error.
To catch any problems during development use the assert.

Signed-off-by: default avatarJosef Bacik <josef@toxicpanda.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
[ set the error in default: ]
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent cd30d3bc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment