aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Melin <tomas.melin@vaisala.com>2016-08-29 12:02:28 -0400
committerChris Ball <chris@printf.net>2016-08-29 12:03:17 -0400
commite094e28d56ac5cb0b70a14e61c2a936837729eb8 (patch)
tree98c9bb7d648c661ab10f8f1792892441bde684e0
parentf90eac4ecc5c91969cef2fe123eadef7b3196026 (diff)
downloadmmc-utils-e094e28d56ac5cb0b70a14e61c2a936837729eb8.tar.gz
Fix return value check from set_partitioning_setting_completed()
Test was wrong way around. Function returns non-zero value on fail. Signed-off-by: Tomas Melin <tomas.melin@vaisala.com> Signed-off-by: Chris Ball <chris@printf.net>
-rw-r--r--mmc_cmds.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mmc_cmds.c b/mmc_cmds.c
index 26d1dcc..2790ead 100644
--- a/mmc_cmds.c
+++ b/mmc_cmds.c
@@ -1073,7 +1073,7 @@ int do_create_gp_partition(int nargs, char **argv)
if (ret)
exit(1);
- if (!set_partitioning_setting_completed(dry_run, device, fd))
+ if (set_partitioning_setting_completed(dry_run, device, fd))
exit(1);
return 0;
@@ -1218,7 +1218,7 @@ int do_enh_area_set(int nargs, char **argv)
printf("Done setting ENH_USR area on %s\n", device);
- if (!set_partitioning_setting_completed(dry_run, device, fd))
+ if (set_partitioning_setting_completed(dry_run, device, fd))
exit(1);
return 0;
@@ -1280,7 +1280,7 @@ int do_write_reliability_set(int nargs, char **argv)
printf("Done setting EXT_CSD_WR_REL_SET to 0x%02x on %s\n",
value, device);
- if (!set_partitioning_setting_completed(dry_run, device, fd))
+ if (set_partitioning_setting_completed(dry_run, device, fd))
exit(1);
return 0;