[PATCH 1/1] btrfs-progs: use the correct variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



its res instead of ret

Signed-off-by: Anand Jain <anand.jain@xxxxxxxxxx>
---
 cmds-device.c |    2 +-
 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);
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux