diff options
author | Tomas Melin <tomas.melin@vaisala.com> | 2016-08-29 12:02:28 -0400 |
---|---|---|
committer | Chris Ball <chris@printf.net> | 2016-08-29 12:03:17 -0400 |
commit | e094e28d56ac5cb0b70a14e61c2a936837729eb8 (patch) | |
tree | 98c9bb7d648c661ab10f8f1792892441bde684e0 | |
parent | f90eac4ecc5c91969cef2fe123eadef7b3196026 (diff) | |
download | mmc-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |