From: Marc Zyngier <marc.zyngier@arm.com>
To: Krzysztof Kozlowski <krzk@kernel.org>,
Kukjin Kim <kgene@kernel.org>,
Thomas Gleixner <tglx@linutronix.de>,
Jason Cooper <jason@lakedaemon.net>,
linux-arm-kernel@lists.infradead.org,
linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] irqchip/s3c24xx: Remove unneeded comparison of unsigned long to 0
Date: Mon, 13 Aug 2018 16:21:08 +0100 [thread overview]
Message-ID: <35e59c4f-0f36-6a39-d075-dac32f75bce8@arm.com> (raw)
In-Reply-To: <20180813151144.12407-1-krzk@kernel.org>
On 13/08/18 16:11, Krzysztof Kozlowski wrote:
> irq_data->hwirq is unsigned long. This fixes GCC warning:
>
> drivers/irqchip/irq-s3c24xx.c: In function 's3c_irqext0_type':
> drivers/irqchip/irq-s3c24xx.c:253:19: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
> if ((data->hwirq >= 0) && (data->hwirq <= 3)) {
> ^~
>
> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
> ---
> drivers/irqchip/irq-s3c24xx.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/irqchip/irq-s3c24xx.c b/drivers/irqchip/irq-s3c24xx.c
> index f6fd57ebe6e6..c19766fe8a1a 100644
> --- a/drivers/irqchip/irq-s3c24xx.c
> +++ b/drivers/irqchip/irq-s3c24xx.c
> @@ -250,7 +250,7 @@ static int s3c_irqext0_type(struct irq_data *data, unsigned int type)
> void __iomem *gpcon_reg;
> unsigned long gpcon_offset, extint_offset;
>
> - if ((data->hwirq >= 0) && (data->hwirq <= 3)) {
> + if (data->hwirq <= 3) {
> gpcon_reg = S3C2410_GPFCON;
> extint_reg = S3C24XX_EXTINT0;
> gpcon_offset = (data->hwirq) * 2;
>
Queued, thanks.
M.
--
Jazz is not dead. It just smells funny...
prev parent reply other threads:[~2018-08-13 15:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-13 15:11 Krzysztof Kozlowski
2018-08-13 15:21 ` Marc Zyngier [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=35e59c4f-0f36-6a39-d075-dac32f75bce8@arm.com \
--to=marc.zyngier@arm.com \
--cc=jason@lakedaemon.net \
--cc=kgene@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=tglx@linutronix.de \
/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®