From: SF Markus Elfring <elfring@users.sourceforge.net> To: linux-gpio@vger.kernel.org, Linus Walleij <linus.walleij@linaro.org> Cc: LKML <linux-kernel@vger.kernel.org>, kernel-janitors@vger.kernel.org, Julia Lawall <julia.lawall@lip6.fr> Subject: [PATCH] pinctrl-adi2: Use a signed return type for adi_gpio_irq_startup() Date: Sat, 19 Dec 2015 18:00:36 +0100 [thread overview] Message-ID: <56758D34.2070806@users.sourceforge.net> (raw) From: Markus Elfring <elfring@users.sourceforge.net> Date: Sat, 19 Dec 2015 17:55:39 +0100 The return type "unsigned int" was used by the adi_gpio_irq_startup() function despite of the aspect that it will eventually return a negative error code. Improve this implementation detail by deletion of the type modifier then. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> --- drivers/pinctrl/pinctrl-adi2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-adi2.c b/drivers/pinctrl/pinctrl-adi2.c index fd342df..4032004 100644 --- a/drivers/pinctrl/pinctrl-adi2.c +++ b/drivers/pinctrl/pinctrl-adi2.c @@ -329,7 +329,7 @@ static void adi_gpio_unmask_irq(struct irq_data *d) spin_unlock_irqrestore(&port->lock, flags); } -static unsigned int adi_gpio_irq_startup(struct irq_data *d) +static int adi_gpio_irq_startup(struct irq_data *d) { unsigned long flags; struct gpio_port *port = irq_data_get_irq_chip_data(d); -- 2.6.3
WARNING: multiple messages have this Message-ID (diff)
From: SF Markus Elfring <elfring@users.sourceforge.net> To: linux-gpio@vger.kernel.org, Linus Walleij <linus.walleij@linaro.org> Cc: LKML <linux-kernel@vger.kernel.org>, kernel-janitors@vger.kernel.org, Julia Lawall <julia.lawall@lip6.fr> Subject: [PATCH] pinctrl-adi2: Use a signed return type for adi_gpio_irq_startup() Date: Sat, 19 Dec 2015 17:00:36 +0000 [thread overview] Message-ID: <56758D34.2070806@users.sourceforge.net> (raw) From: Markus Elfring <elfring@users.sourceforge.net> Date: Sat, 19 Dec 2015 17:55:39 +0100 The return type "unsigned int" was used by the adi_gpio_irq_startup() function despite of the aspect that it will eventually return a negative error code. Improve this implementation detail by deletion of the type modifier then. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> --- drivers/pinctrl/pinctrl-adi2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-adi2.c b/drivers/pinctrl/pinctrl-adi2.c index fd342df..4032004 100644 --- a/drivers/pinctrl/pinctrl-adi2.c +++ b/drivers/pinctrl/pinctrl-adi2.c @@ -329,7 +329,7 @@ static void adi_gpio_unmask_irq(struct irq_data *d) spin_unlock_irqrestore(&port->lock, flags); } -static unsigned int adi_gpio_irq_startup(struct irq_data *d) +static int adi_gpio_irq_startup(struct irq_data *d) { unsigned long flags; struct gpio_port *port = irq_data_get_irq_chip_data(d); -- 2.6.3
next reply other threads:[~2015-12-19 17:00 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-12-19 17:00 SF Markus Elfring [this message] 2015-12-19 17:00 ` [PATCH] pinctrl-adi2: Use a signed return type for adi_gpio_irq_startup() SF Markus Elfring 2015-12-19 20:12 ` Dan Carpenter 2015-12-19 20:12 ` Dan Carpenter 2015-12-19 20:40 ` SF Markus Elfring 2015-12-19 20:40 ` SF Markus Elfring 2015-12-19 20:45 ` Dan Carpenter 2015-12-19 20:45 ` Dan Carpenter 2015-12-19 22:20 ` SF Markus Elfring 2015-12-19 22:20 ` SF Markus Elfring 2015-12-19 21:54 ` [PATCH] " kbuild test robot 2015-12-19 21:54 ` kbuild test robot
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=56758D34.2070806@users.sourceforge.net \ --to=elfring@users.sourceforge.net \ --cc=julia.lawall@lip6.fr \ --cc=kernel-janitors@vger.kernel.org \ --cc=linus.walleij@linaro.org \ --cc=linux-gpio@vger.kernel.org \ --cc=linux-kernel@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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.