* [PATCH 3/3] mmc-utils: Fix return value check from set_partitioning_setting_completed()
@ 2016-08-29 10:54 tomas.melin
0 siblings, 0 replies; only message in thread
From: tomas.melin @ 2016-08-29 10:54 UTC (permalink / raw)
To: chris; +Cc: linux-mmc, tomas.melin
Test was wrong way around. Function returns non-zero value on fail.
Signed-off-by: Tomas Melin <tomas.melin@vaisala.com>
---
mmc_cmds.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/mmc_cmds.c b/mmc_cmds.c
index 5f2b2b5..09be825 100644
--- a/mmc_cmds.c
+++ b/mmc_cmds.c
@@ -1071,7 +1071,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;
@@ -1215,7 +1215,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;
@@ -1279,8 +1279,8 @@ 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))
- exit(1);
+ if (set_partitioning_setting_completed(dry_run, device, fd))
+ exit(1);
return 0;
}
--
2.1.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-08-29 10:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-29 10:54 [PATCH 3/3] mmc-utils: Fix return value check from set_partitioning_setting_completed() tomas.melin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).