EDAC/amd64: Drop some family checks for newer systems
authorYazen Ghannam <yazen.ghannam@amd.com>
Fri, 10 Jan 2020 01:56:51 +0000 (01:56 +0000)
committerBorislav Petkov <bp@suse.de>
Thu, 16 Jan 2020 16:09:29 +0000 (17:09 +0100)
commitdcd01394ce7cd7d25bb15c81ad2e804d8090611f
tree833f499c40e01959ab9c8317395d613b8644e59f
parent2eb61c91c3e2738218e55f2eaf7e78a4435c233d
EDAC/amd64: Drop some family checks for newer systems

In general, "pvt->umc != NULL" is used to check if the system is Family
17h+. However, there are a few places that are using direct family
checks.

Replace the remaining family checks with a check for "pvt->umc != NULL".

Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200110015651.14887-6-Yazen.Ghannam@amd.com
drivers/edac/amd64_edac.c