summaryrefslogtreecommitdiff
path: root/util/nvmutil/lib/num.c
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-19 19:16:32 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-26 06:59:42 +0000
commit49413b7d6b561784afd81964b278fd8cce2d92df (patch)
tree2c232796f465df9608d6304f3af236b0458fa27a /util/nvmutil/lib/num.c
parentbd5fc60dd952d63537b643a5d83245a530d85879 (diff)
fix variable name
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil/lib/num.c')
-rw-r--r--util/nvmutil/lib/num.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/nvmutil/lib/num.c b/util/nvmutil/lib/num.c
index 0f795107..99503e8c 100644
--- a/util/nvmutil/lib/num.c
+++ b/util/nvmutil/lib/num.c
@@ -246,7 +246,7 @@ fallback_rand_getrandom(void *buf, size_t len)
#elif defined(HAVE_GETRANDOM_SYSCALL)
do {
rval = syscall(SYS_getrandom, buf, len, 0);
- } while (ret < 0 && errno == EINTR);
+ } while (rval < 0 && errno == EINTR);
#else
return -1;