From b7e1af9f235c1a8e1850bb8ddbce07af50dd0d7e Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Fri, 13 Mar 2026 03:19:52 +0000 Subject: util/nvmutil: remove dead code useless check. will never be true. Signed-off-by: Leah Rowe --- util/nvmutil/nvmutil.c | 3 --- 1 file changed, 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) -- cgit v1.2.1