[PATCH 17/25] x86/MCE/AMD: Remove unnecessary assert

From: Yazen Ghannam
Date: Fri May 07 2021 - 15:03:07 EST


From: Yazen Ghannam <yazen.ghannam@xxxxxxx>

It was removed in the reference code, so remove it here.

Signed-off-by: Yazen Ghannam <yazen.ghannam@xxxxxxx>
---
arch/x86/kernel/cpu/mce/amd.c | 7 -------
1 file changed, 7 deletions(-)

diff --git a/arch/x86/kernel/cpu/mce/amd.c b/arch/x86/kernel/cpu/mce/amd.c
index 670787be705d..8f4838a3d509 100644
--- a/arch/x86/kernel/cpu/mce/amd.c
+++ b/arch/x86/kernel/cpu/mce/amd.c
@@ -882,13 +882,6 @@ static int denormalize_addr(struct addr_ctx *ctx)
num_intlv_bits += ctx->intlv_num_dies;
num_intlv_bits += ctx->intlv_num_sockets;

- /* Assert num_intlv_bits <= 4 */
- if (num_intlv_bits > 4) {
- pr_err("%s: Invalid interleave bits %d.\n",
- __func__, num_intlv_bits);
- return -EINVAL;
- }
-
if (num_intlv_bits > 0) {
u64 temp_addr_x, temp_addr_i, temp_addr_y;
u8 die_id_bit, sock_id_bit, cs_fabric_id;
--
2.25.1