mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-17 20:05:24 +00:00
btrfs-progs: use the correct variable
It's res instead of ret, wrong error message could be prointed in case of error. Signed-off-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
parent
e9b5ff23ea
commit
fda6638093
@ -183,7 +183,7 @@ static int cmd_rm_dev(int argc, char **argv)
|
||||
if (res) {
|
||||
const char *msg;
|
||||
|
||||
if (ret > 0)
|
||||
if (res > 0)
|
||||
msg = btrfs_err_str(res);
|
||||
else
|
||||
msg = strerror(e);
|
||||
|
Loading…
Reference in New Issue
Block a user