[PATCH -next] edac: i5100_edac: Remove unused inline function i5100_nrecmema_dm_buf_id()

YueHaibing posted 1 patch 1 year, 11 months ago
drivers/edac/i5100_edac.c | 5 -----
1 file changed, 5 deletions(-)
[PATCH -next] edac: i5100_edac: Remove unused inline function i5100_nrecmema_dm_buf_id()
Posted by YueHaibing 1 year, 11 months ago
commit a4972b1b9a04 ("edac: i5100_edac: Remove unused i5100_recmema_dm_buf_id")
leave this behind, remove it.
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/edac/i5100_edac.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/drivers/edac/i5100_edac.c b/drivers/edac/i5100_edac.c
index 324a46b8479b..f5d82518c15e 100644
--- a/drivers/edac/i5100_edac.c
+++ b/drivers/edac/i5100_edac.c
@@ -244,11 +244,6 @@ static inline u32 i5100_nrecmema_rank(u32 a)
 	return a >>  8 & ((1 << 3) - 1);
 }
 
-static inline u32 i5100_nrecmema_dm_buf_id(u32 a)
-{
-	return a & ((1 << 8) - 1);
-}
-
 static inline u32 i5100_nrecmemb_cas(u32 a)
 {
 	return a >> 16 & ((1 << 13) - 1);
-- 
2.17.1
Re: [PATCH -next] edac: i5100_edac: Remove unused inline function i5100_nrecmema_dm_buf_id()
Posted by Borislav Petkov 1 year, 11 months ago
On Sat, May 14, 2022 at 04:04:33PM +0800, YueHaibing wrote:
> commit a4972b1b9a04 ("edac: i5100_edac: Remove unused i5100_recmema_dm_buf_id")
> leave this behind, remove it.
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>
> ---
>  drivers/edac/i5100_edac.c | 5 -----
>  1 file changed, 5 deletions(-)
> 
> diff --git a/drivers/edac/i5100_edac.c b/drivers/edac/i5100_edac.c
> index 324a46b8479b..f5d82518c15e 100644
> --- a/drivers/edac/i5100_edac.c
> +++ b/drivers/edac/i5100_edac.c
> @@ -244,11 +244,6 @@ static inline u32 i5100_nrecmema_rank(u32 a)
>  	return a >>  8 & ((1 << 3) - 1);
>  }
>  
> -static inline u32 i5100_nrecmema_dm_buf_id(u32 a)
> -{
> -	return a & ((1 << 8) - 1);
> -}
> -
>  static inline u32 i5100_nrecmemb_cas(u32 a)
>  {
>  	return a >> 16 & ((1 << 13) - 1);
> -- 

Applied, thanks.

-- 
Regards/Gruss,
    Boris.

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