summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-09-19 16:00:57 +0100
committerLeah Rowe <leah@libreboot.org>2023-09-19 16:01:26 +0100
commit5e8013601a7592721a908252625eb785ae9f7a8b (patch)
treecdb9efaf09711ccd0700100f2e68b022a58f3646 /util
parent137a548b045b61cf3383b5dacb6fa3c88f399504 (diff)
util/nvmutil: use correct comparisons on pointers
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util')
-rw-r--r--util/nvmutil/nvmutil.c6
1 files changed, 3 insertions, 3 deletions
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])