EDAC, MCE: Remove unused function parameter
authorBorislav Petkov <borislav.petkov@amd.com>
Mon, 30 Aug 2010 10:34:19 +0000 (12:34 +0200)
committerBorislav Petkov <bp@amd64.org>
Thu, 21 Oct 2010 12:47:57 +0000 (14:47 +0200)
Remove remains from previous functionality.

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
drivers/edac/amd64_edac_dbg.c
drivers/edac/edac_mce_amd.c
drivers/edac/edac_mce_amd.h

index 59cf2cf6e11ec3fc9628b5f6b32aa525ae3a80cf..22ef3fecf56944f6901dfb0e959bd41c12965272 100644 (file)
@@ -24,7 +24,7 @@ static ssize_t amd64_nbea_store(struct mem_ctl_info *mci, const char *data,
 
                /* Process the Mapping request */
                /* TODO: Add race prevention */
-               amd_decode_nb_mce(pvt->mc_node_id, &pvt->ctl_error_info, 1);
+               amd_decode_nb_mce(pvt->mc_node_id, &pvt->ctl_error_info);
 
                return count;
        }
index 564fe7c753459b99c21724c744529ab37c251b7b..765d7fbfa2d54beef6e34fc7b88285030bb5cb51 100644 (file)
@@ -291,13 +291,10 @@ wrong_ls_mce:
        pr_emerg(HW_ERR "Corrupted LS MCE info?\n");
 }
 
-void amd_decode_nb_mce(int node_id, struct err_regs *regs, int handle_errors)
+void amd_decode_nb_mce(int node_id, struct err_regs *regs)
 {
        u32 ec  = ERROR_CODE(regs->nbsl);
 
-       if (!handle_errors)
-               return;
-
        /*
         * GART TLB error reporting is disabled by default. Bail out early.
         */
@@ -402,7 +399,7 @@ static int amd_decode_mce(struct notifier_block *nb, unsigned long val,
                regs.nbeah = (u32)(m->addr >> 32);
                node       = amd_get_nb_id(m->extcpu);
 
-               amd_decode_nb_mce(node, &regs, 1);
+               amd_decode_nb_mce(node, &regs);
                break;
 
        case 5:
index df23ee065f7981fe9f4084b461efa1de0f5d6836..8920133075e976a246470b85d238cf320d93782d 100644 (file)
@@ -64,6 +64,6 @@ struct err_regs {
 void amd_report_gart_errors(bool);
 void amd_register_ecc_decoder(void (*f)(int, struct err_regs *));
 void amd_unregister_ecc_decoder(void (*f)(int, struct err_regs *));
-void amd_decode_nb_mce(int, struct err_regs *, int);
+void amd_decode_nb_mce(int, struct err_regs *);
 
 #endif /* _EDAC_MCE_AMD_H */