mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] parisc: lba_pci: remove unused macro
@ 2024-10-08  7:26 Ba Jing
  2024-10-10 18:50 ` Helge Deller
  0 siblings, 1 reply; 2+ messages in thread
From: Ba Jing @ 2024-10-08  7:26 UTC (permalink / raw)
  To: James.Bottomley; +Cc: deller, linux-parisc, linux-kernel, Ba Jing

By reading the code, I found the macro LBA_MASTER_ABORT_ERROR 
is never referenced in the code. Just remove it.

Signed-off-by: Ba Jing <bajing@cmss.chinamobile.com>
---
 drivers/parisc/lba_pci.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/parisc/lba_pci.c b/drivers/parisc/lba_pci.c
index 3fc3765fddaa..5990766b6561 100644
--- a/drivers/parisc/lba_pci.c
+++ b/drivers/parisc/lba_pci.c
@@ -277,7 +277,6 @@ static int lba_device_present(u8 bus, u8 dfn, struct lba_device *d)
  *		smart mode as well.
  */
 
-#define LBA_MASTER_ABORT_ERROR 0xc
 #define LBA_FATAL_ERROR 0x10
 
 #define LBA_CFG_MASTER_ABORT_CHECK(d, base, tok, error) {		\
-- 
2.33.0




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] parisc: lba_pci: remove unused macro
  2024-10-08  7:26 [PATCH] parisc: lba_pci: remove unused macro Ba Jing
@ 2024-10-10 18:50 ` Helge Deller
  0 siblings, 0 replies; 2+ messages in thread
From: Helge Deller @ 2024-10-10 18:50 UTC (permalink / raw)
  To: Ba Jing, James.Bottomley; +Cc: linux-parisc, linux-kernel

Hello Ba Jing,

On 10/8/24 09:26, Ba Jing wrote:
> By reading the code, I found the macro LBA_MASTER_ABORT_ERROR
> is never referenced in the code. Just remove it.

Thanks for your patch!

Of course you are right and this macro/constant is currently
unused, but it may become very useful when trying to debug this
code. In that case it's good to know that value without need to
look everything up again.

So, as there is not much gain in dropping this constant I plan
to keep it here and will not apply your patch.

Similar for the other patch you sent.

Anyway, thanks for spotting this. Maybe you find other more
useful possible code optimizations.

Helge


> Signed-off-by: Ba Jing <bajing@cmss.chinamobile.com>
> ---
>   drivers/parisc/lba_pci.c | 1 -
>   1 file changed, 1 deletion(-)
>
> diff --git a/drivers/parisc/lba_pci.c b/drivers/parisc/lba_pci.c
> index 3fc3765fddaa..5990766b6561 100644
> --- a/drivers/parisc/lba_pci.c
> +++ b/drivers/parisc/lba_pci.c
> @@ -277,7 +277,6 @@ static int lba_device_present(u8 bus, u8 dfn, struct lba_device *d)
>    *		smart mode as well.
>    */
>
> -#define LBA_MASTER_ABORT_ERROR 0xc
>   #define LBA_FATAL_ERROR 0x10
>
>   #define LBA_CFG_MASTER_ABORT_CHECK(d, base, tok, error) {		\


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-10-10 18:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-08  7:26 [PATCH] parisc: lba_pci: remove unused macro Ba Jing
2024-10-10 18:50 ` Helge Deller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®