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:
Anand Jain 2015-05-11 21:55:52 +08:00 committed by David Sterba
parent e9b5ff23ea
commit fda6638093

View File

@ -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);