mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
EDAC, thunderx: Fix a warning during l2c debugfs node creation
Compare the number of debugfs entries created by thunderx_create_debugfs_nodes() with the requested number of entries to properly determine whether to print a warning. Signed-off-by: Vadim Lomovtsev <[email protected]> Cc: linux-edac <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Sergey Temerkhanov <[email protected]> Signed-off-by: Borislav Petkov <[email protected]>
This commit is contained in:
parent
7d2fdaa694
commit
cf97825862
1 changed files with 1 additions and 1 deletions
|
|
@ -2080,7 +2080,7 @@ static int thunderx_l2c_probe(struct pci_dev *pdev,
|
|||
if (IS_ENABLED(CONFIG_EDAC_DEBUG)) {
|
||||
l2c->debugfs = edac_debugfs_create_dir(pdev->dev.kobj.name);
|
||||
|
||||
thunderx_create_debugfs_nodes(l2c->debugfs, l2c_devattr,
|
||||
ret = thunderx_create_debugfs_nodes(l2c->debugfs, l2c_devattr,
|
||||
l2c, dfs_entries);
|
||||
|
||||
if (ret != dfs_entries) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue