From 5e8013601a7592721a908252625eb785ae9f7a8b Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Tue, 19 Sep 2023 16:00:57 +0100 Subject: util/nvmutil: use correct comparisons on pointers Signed-off-by: Leah Rowe --- util/nvmutil/nvmutil.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'util/nvmutil') diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index b6deaeaa..79b0ceeb 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -103,7 +103,7 @@ main(int argc, char *argv[]) if ((gbeFileModified) && (flags != O_RDONLY) && (cmd != writeGbeFile)) writeGbeFile(); - err_if((errno != 0) && (cmd != &cmd_dump)); + err_if((errno != 0) && (cmd != cmd_dump)); return errno; } @@ -122,8 +122,8 @@ void readGbeFile(void) { nf = ((cmd == writeGbeFile) || (cmd == cmd_copy)) ? SIZE_4KB : nf; - skipread[part ^ 1] = (cmd == &cmd_copy) | (cmd == &cmd_setchecksum) - | (cmd == &cmd_brick); + skipread[part ^ 1] = (cmd == cmd_copy) | (cmd == cmd_setchecksum) + | (cmd == cmd_brick); gbe[1] = (gbe[0] = (size_t) buf) + SIZE_4KB; for (int p = 0; p < 2; p++) { if (skipread[p]) -- cgit v1.2.1