mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <>
Cc: Ahmad Fatoum <>
Subject: [PATCH] gpiolib: remove declaration of now unused variable
Date: Tue, 26 Apr 2022 08:46:19 +0200	[thread overview]
Message-ID: <> (raw)

Since commit f349b662674e ("gpio: allocate dynamic gpio numbers
top down"), the variable is now unused and warned about, so remove it.

Signed-off-by: Ahmad Fatoum <>
 drivers/gpio/gpiolib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index c9b33bcd6c2b..10cb7b389555 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -609,7 +609,7 @@ int gpiod_get(struct device_d *dev, const char *_con_id, enum gpiod_flags flags)
 int gpiochip_add(struct gpio_chip *chip)
-	int base, i;
+	int i;
 	if (chip->base >= 0) {
 		for (i = 0; i < chip->ngpio; i++) {

barebox mailing list

             reply	other threads:[~2022-04-26  6:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-26  6:46 Ahmad Fatoum [this message]
2022-04-29  7:11 ` Sascha Hauer

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \
    --subject='Re: [PATCH] gpiolib: remove declaration of now unused variable' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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