util/nvmutil: remove dead code

useless check. will never be true.

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-13 03:19:52 +00:00
parent fdd99a9a45
commit a85f2898e2
-3
View File
@@ -1136,9 +1136,6 @@ rhex(void)
if (use_prng)
return fallback_rand();
if (urandom_fd < 0)
err(ECANCELED, "Your operating system has no /dev/[u]random");
if (!n) {
n = sizeof(rnum);
if (rw_file_exact(urandom_fd, rnum, n, 0, LESEN) == -1)