summaryrefslogtreecommitdiff
path: root/util/nvmutil/nvmutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/nvmutil/nvmutil.c')
-rw-r--r--util/nvmutil/nvmutil.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index e2dafec7..5edb9d48 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -351,12 +351,7 @@ cmd_brick(void)
void
cmd_swap(void)
{
- int part0, part1;
-
- part0 = validChecksum(0);
- part1 = validChecksum(1);
-
- if (part0 || part1) {
+ if (validChecksum(1) || validChecksum(0)) {
gbe[0] ^= gbe[1];
gbe[1] ^= gbe[0];
gbe[0] ^= gbe[1];