From: Helge Deller <deller@gmx.de>
To: Ba Jing <bajing@cmss.chinamobile.com>,
James.Bottomley@HansenPartnership.com
Cc: linux-parisc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] parisc: lba_pci: remove unused macro
Date: Thu, 10 Oct 2024 20:50:22 +0200 [thread overview]
Message-ID: <b7d176a1-9a12-4e6a-894d-7b71087a5560@gmx.de> (raw)
In-Reply-To: <20241008072620.38663-1-bajing@cmss.chinamobile.com>
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) { \
prev parent reply other threads:[~2024-10-10 18:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-08 7:26 Ba Jing
2024-10-10 18:50 ` Helge Deller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b7d176a1-9a12-4e6a-894d-7b71087a5560@gmx.de \
--to=deller@gmx.de \
--cc=James.Bottomley@HansenPartnership.com \
--cc=bajing@cmss.chinamobile.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-parisc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®