]> asedeno.scripts.mit.edu Git - linux.git/commit
EDAC/amd64: Do not warn when removing instances
authorBorislav Petkov <bp@suse.de>
Fri, 17 Jan 2020 11:30:20 +0000 (12:30 +0100)
committerBorislav Petkov <bp@suse.de>
Fri, 17 Jan 2020 12:00:06 +0000 (13:00 +0100)
commit7e5d6cf35329c8b232a1e97114545c1745d79083
tree9fd64a5b86c613e2f18dd80d1c6af9123baad921
parent6cd18453b68942913fd3b1913b707646e544c2ac
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 <bp@suse.de>
Link: https://lkml.kernel.org/r/20200117115939.5524-1-bp@alien8.de
drivers/edac/amd64_edac.c