diff options
author | Anand Jain <anand.jain@oracle.com> | 2015-05-11 21:55:52 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2015-05-14 15:41:07 +0200 |
commit | fda663809308778b1b67073954045f91e085b80f (patch) | |
tree | e037f658dbfd76cd78a0325236c68df8cf4535c7 /cmds-device.c | |
parent | e9b5ff23eafffa37c1d7bab979f97b1a285556cb (diff) |
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>
Diffstat (limited to 'cmds-device.c')
-rw-r--r-- | cmds-device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds-device.c b/cmds-device.c index cbb32438..10226569 100644 --- a/cmds-device.c +++ b/cmds-device.c @@ -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); |