EDAC, thunderx: Fix a warning during l2c debugfs node creation
authorVadim Lomovtsev <Vadim.Lomovtsev@caviumnetworks.com>
Wed, 31 May 2017 15:51:57 +0000 (18:51 +0300)
committerBorislav Petkov <bp@suse.de>
Thu, 1 Jun 2017 18:08:17 +0000 (20:08 +0200)
commitcf97825862f0acd7d6bad67da59962e4badc870a
tree55606e01429620ad824fb60331763b9aa0c0ca05
parent7d2fdaa694c596671c0d1d8d625966f7eb8cdea8
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 <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>
drivers/edac/thunderx_edac.c