summaryrefslogtreecommitdiff
path: root/drivers/base/cacheinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/base/cacheinfo.c')
-rw-r--r--drivers/base/cacheinfo.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/base/cacheinfo.c b/drivers/base/cacheinfo.c
index 8ed4ea1f3716..6e64563361f0 100644
--- a/drivers/base/cacheinfo.c
+++ b/drivers/base/cacheinfo.c
@@ -520,10 +520,8 @@ static int __init cacheinfo_sysfs_init(void)
for_each_online_cpu(cpu) {
rc = detect_cache_attributes(cpu);
- if (rc) {
- pr_err("error detecting cacheinfo..cpu%d\n", cpu);
+ if (rc)
goto out;
- }
rc = cache_add_dev(cpu);
if (rc) {
free_cache_attributes(cpu);