aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/random
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2026-02-09 17:24:27 +0000
committerAndrew Turner <andrew@FreeBSD.org>2026-02-09 17:24:27 +0000
commita8c3933840448eaf04ecfe162c0d05caf11090a4 (patch)
tree227e9519a9fd4cab0a68627923d6497f24fa680f /sys/dev/random
parent3b0b6aa2cd05b516ecf4b72f9a3c2aadddf3c94e (diff)
Diffstat (limited to 'sys/dev/random')
-rw-r--r--sys/dev/random/armv8rng.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/random/armv8rng.c b/sys/dev/random/armv8rng.c
index 9573c09aa77a..7aa6f4b0ded1 100644
--- a/sys/dev/random/armv8rng.c
+++ b/sys/dev/random/armv8rng.c
@@ -98,8 +98,8 @@ rndr_modevent(module_t mod, int type, void *unused)
switch (type) {
case MOD_LOAD:
has_rndr = false;
- if (get_kernel_reg(ID_AA64ISAR0_EL1, &reg) &&
- ID_AA64ISAR0_RNDR_VAL(reg) != ID_AA64ISAR0_RNDR_NONE) {
+ get_kernel_reg(ID_AA64ISAR0_EL1, &reg);
+ if (ID_AA64ISAR0_RNDR_VAL(reg) != ID_AA64ISAR0_RNDR_NONE) {
has_rndr = true;
random_source_register(&random_armv8_rndr);
printf("random: fast provider: \"%s\"\n",