From 41e987222b95f27d18de5b944f4bc6b2c41ffc96 Mon Sep 17 00:00:00 2001 From: leoliu-oc Date: Mon, 22 Jul 2024 14:55:53 +0800 Subject: [PATCH] hwmon: zhaoxin-rng: remove log when CPU mismatch Delete this sentence "The CPU isn't support XSTORE" to avoid unnecessary redundant information. Signed-off-by: leoliu-oc --- drivers/char/hw_random/zhaoxin-rng.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/char/hw_random/zhaoxin-rng.c b/drivers/char/hw_random/zhaoxin-rng.c index 1bd171eebf71b..a189ace19dcaf 100644 --- a/drivers/char/hw_random/zhaoxin-rng.c +++ b/drivers/char/hw_random/zhaoxin-rng.c @@ -69,10 +69,8 @@ static int __init zhaoxin_rng_mod_init(void) { int err; - if (!x86_match_cpu(zhaoxin_rng_cpu_ids)) { - pr_err(PFX "The CPU isn't support XSTORE.\n"); + if (!x86_match_cpu(zhaoxin_rng_cpu_ids)) return -ENODEV; - } pr_info("Zhaoxin RNG detected\n");