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>
This commit is contained in:
1 parent
f90eac4ecc
commit
e094e28d56
1 file changed
+3
-3
+3
-3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user