Skip to content

Commit

Permalink
EDAC, thunderx: Fix a warning during l2c debugfs node creation
Browse files Browse the repository at this point in the history
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 <Vadim.Lomovtsev@caviumnetworks.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Cc: linux-mips@linux-mips.org
Link: http://lkml.kernel.org/r/20170531155157.93583-1-stemerkhanov@cavium.com
Signed-off-by: Sergey Temerkhanov <s.temerkhanov@gmail.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
  • Loading branch information
Vadim Lomovtsev authored and Borislav Petkov committed Jun 1, 2017
1 parent 7d2fdaa commit cf97825
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/edac/thunderx_edac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit cf97825

Please sign in to comment.