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>
master
Anand Jain 2015-05-11 21:55:52 +08:00 committed by David Sterba
parent e9b5ff23ea
commit fda6638093
1 changed files with 1 additions and 1 deletions

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