mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
EDAC/amd64: Do not warn when removing instances
On machines which do not populate all nodes with DIMMs, the driver doesn't initialize an instance there. However, the instance removal remove_one_instance() path will warn unconditionally, which is wrong. Remove the WARN_ON() even if the warning is innocent because it causes a splat in dmesg. Signed-off-by: Borislav Petkov <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
This commit is contained in:
1 parent
6cd18453b6
commit
7e5d6cf353
1 file changed
-3
@@ -3573,9 +3573,6 @@ static void remove_one_instance(unsigned int nid)
|
||||
struct mem_ctl_info *mci;
|
||||
struct amd64_pvt *pvt;
|
||||
|
||||
mci = find_mci_by_dev(&F3->dev);
|
||||
WARN_ON(!mci);
|
||||
|
||||
/* Remove from EDAC CORE tracking list */
|
||||
mci = edac_mc_del_mc(&F3->dev);
|
||||
if (!mci)
|
||||
|
||||
Reference in new issue
Block a user