Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1364652 > unrolled thread
| Started by | Geert Uytterhoeven <geert+renesas@glider.be> |
|---|---|
| First post | 2016-03-25 13:40 +0100 |
| Last post | 2016-03-31 12:00 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 2/2] tools/gpio: Add missing initialization of device_name Geert Uytterhoeven <geert+renesas@glider.be> - 2016-03-25 13:40 +0100
Re: [PATCH 2/2] tools/gpio: Add missing initialization of device_name Linus Walleij <linus.walleij@linaro.org> - 2016-03-31 12:00 +0200
| From | Geert Uytterhoeven <geert+renesas@glider.be> |
|---|---|
| Date | 2016-03-25 13:40 +0100 |
| Subject | [PATCH 2/2] tools/gpio: Add missing initialization of device_name |
| Message-ID | <rgzbY-1Ed-3@gated-at.bofh.it> |
lsgpio.c: In function ‘main’:
lsgpio.c:166:7: warning: ‘device_name’ may be used uninitialized in this functio
n [-Wmaybe-uninitialized]
ret = list_device(device_name);
^
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
tools/gpio/lsgpio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/gpio/lsgpio.c b/tools/gpio/lsgpio.c
index 1124da3759424fe6..eb3f56efd2158b4c 100644
--- a/tools/gpio/lsgpio.c
+++ b/tools/gpio/lsgpio.c
@@ -147,7 +147,7 @@ void print_usage(void)
int main(int argc, char **argv)
{
- const char *device_name;
+ const char *device_name = NULL;
int ret;
int c;
--
1.9.1
[toc] | [next] | [standalone]
| From | Linus Walleij <linus.walleij@linaro.org> |
|---|---|
| Date | 2016-03-31 12:00 +0200 |
| Message-ID | <riHyr-32C-23@gated-at.bofh.it> |
| In reply to | #1364652 |
On Fri, Mar 25, 2016 at 1:36 PM, Geert Uytterhoeven <geert+renesas@glider.be> wrote: > lsgpio.c: In function ‘main’: > lsgpio.c:166:7: warning: ‘device_name’ may be used uninitialized in this functio > n [-Wmaybe-uninitialized] > ret = list_device(device_name); > ^ > > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Patch applied. Yours, Linus Walleij
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web