summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-13 03:19:52 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-13 03:19:52 +0000
commitb7e1af9f235c1a8e1850bb8ddbce07af50dd0d7e (patch)
tree8f93507cc53e1ea1792205285cb451f847cacffa /util
parent54854200a7712ed51d5368feb9c3e389ef9d5da2 (diff)
util/nvmutil: remove dead code
useless check. will never be true. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util')
-rw-r--r--util/nvmutil/nvmutil.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index 39a30f3d..3b289deb 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -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)