Skip to content

Commit

Permalink
hwmon: zhaoxin-rng: remove log when CPU mismatch
Browse files Browse the repository at this point in the history
Delete this sentence "The CPU isn't support XSTORE" to avoid unnecessary
redundant information.

Signed-off-by: leoliu-oc <[email protected]>
  • Loading branch information
leoliu-oc authored and opsiff committed Jul 22, 2024
1 parent e1daf03 commit 41e9872
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/char/hw_random/zhaoxin-rng.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit 41e9872

Please sign in to comment.