summaryrefslogtreecommitdiff
path: root/cmds-device.c
diff options
context:
space:
mode:
authorAnand Jain <anand.jain@oracle.com>2015-05-11 21:55:52 +0800
committerDavid Sterba <dsterba@suse.cz>2015-05-14 15:41:07 +0200
commitfda663809308778b1b67073954045f91e085b80f (patch)
treee037f658dbfd76cd78a0325236c68df8cf4535c7 /cmds-device.c
parente9b5ff23eafffa37c1d7bab979f97b1a285556cb (diff)
downloadbtrfs-progs-fda663809308778b1b67073954045f91e085b80f.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds-device.c b/cmds-device.c
index cbb3243..1022656 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);