[PATCH] edac: thunderx: remove unused struct 'error_syndrome'

linux@treblig.org posted 1 patch 1 year, 9 months ago
drivers/edac/thunderx_edac.c | 6 ------
1 file changed, 6 deletions(-)
[PATCH] edac: thunderx: remove unused struct 'error_syndrome'
Posted by linux@treblig.org 1 year, 9 months ago
From: "Dr. David Alan Gilbert" <linux@treblig.org>

'error_syndrome' appears never to have been used.
Remove it, together with the MAX_SYNDROME_REGS it used.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
---
 drivers/edac/thunderx_edac.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/drivers/edac/thunderx_edac.c b/drivers/edac/thunderx_edac.c
index fab9891e569a..75c04dfc3962 100644
--- a/drivers/edac/thunderx_edac.c
+++ b/drivers/edac/thunderx_edac.c
@@ -35,12 +35,6 @@ enum {
 	ERR_UNKNOWN	= 3,
 };
 
-#define MAX_SYNDROME_REGS 4
-
-struct error_syndrome {
-	u64 reg[MAX_SYNDROME_REGS];
-};
-
 struct error_descr {
 	int	type;
 	u64	mask;
-- 
2.45.0
Re: [PATCH] edac: thunderx: remove unused struct 'error_syndrome'
Posted by Borislav Petkov 1 year, 8 months ago
On Thu, May 16, 2024 at 02:34:04PM +0100, linux@treblig.org wrote:
> From: "Dr. David Alan Gilbert" <linux@treblig.org>
> 
> 'error_syndrome' appears never to have been used.
> Remove it, together with the MAX_SYNDROME_REGS it used.
> 
> Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
> ---
>  drivers/edac/thunderx_edac.c | 6 ------
>  1 file changed, 6 deletions(-)
> 
> diff --git a/drivers/edac/thunderx_edac.c b/drivers/edac/thunderx_edac.c
> index fab9891e569a..75c04dfc3962 100644
> --- a/drivers/edac/thunderx_edac.c
> +++ b/drivers/edac/thunderx_edac.c
> @@ -35,12 +35,6 @@ enum {
>  	ERR_UNKNOWN	= 3,
>  };
>  
> -#define MAX_SYNDROME_REGS 4
> -
> -struct error_syndrome {
> -	u64 reg[MAX_SYNDROME_REGS];
> -};
> -
>  struct error_descr {
>  	int	type;
>  	u64	mask;
> -- 

Applied, thanks.

-- 
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette