summaryrefslogtreecommitdiff
path: root/tools/gpio/lsgpio.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2016-03-25 13:36:30 +0100
committerLinus Walleij <linus.walleij@linaro.org>2016-03-31 11:51:30 +0200
commit691998fac6f50c9117e279c3fbfa63a23cf7ce2e (patch)
tree75a3cf949c830fda3cf45fe7cfdc3085be414359 /tools/gpio/lsgpio.c
parentf6a49e5a3f5562855f9e4b9b81916b06ef673771 (diff)
tools/gpio: Add missing initialization of device_name
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> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'tools/gpio/lsgpio.c')
-rw-r--r--tools/gpio/lsgpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gpio/lsgpio.c b/tools/gpio/lsgpio.c
index 1124da375942..eb3f56efd215 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;