Commit e094e28d authored by Tomas Melin's avatar Tomas Melin Committed by Chris Ball
Browse files

Fix return value check from set_partitioning_setting_completed()



Test was wrong way around. Function returns non-zero value on fail.
Signed-off-by: default avatarTomas Melin <tomas.melin@vaisala.com>
Signed-off-by: default avatarChris Ball <chris@printf.net>
parent f90eac4e
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment