Skip to content

Commit 6df43c9

Browse files
sudeep-hollagregkh
authored andcommitted
drivers/base: cacheinfo: remove noisy error boot message
On systems that don't support cacheinfo, this error message can be considered noisy and irrelevant. The error messages can be added to the functions that architectures implement overiding the weak default definition if really required. This patch removes the concerned error message in the generic code. Signed-off-by: Sudeep Holla <sudeep.holla@arm.com> Reported-by: Fabio Estevam <festevam@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 6386a15 commit 6df43c9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/base/cacheinfo.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -520,10 +520,8 @@ static int __init cacheinfo_sysfs_init(void)
520520

521521
for_each_online_cpu(cpu) {
522522
rc = detect_cache_attributes(cpu);
523-
if (rc) {
524-
pr_err("error detecting cacheinfo..cpu%d\n", cpu);
523+
if (rc)
525524
goto out;
526-
}
527525
rc = cache_add_dev(cpu);
528526
if (rc) {
529527
free_cache_attributes(cpu);

0 commit comments

Comments
 (0)