diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2016-03-25 13:36:30 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-03-31 11:51:30 +0200 |
commit | 691998fac6f50c9117e279c3fbfa63a23cf7ce2e (patch) | |
tree | 75a3cf949c830fda3cf45fe7cfdc3085be414359 /tools/gpio | |
parent | f6a49e5a3f5562855f9e4b9b81916b06ef673771 (diff) | |
download | linux-stable-691998fac6f50c9117e279c3fbfa63a23cf7ce2e.tar.gz linux-stable-691998fac6f50c9117e279c3fbfa63a23cf7ce2e.tar.bz2 linux-stable-691998fac6f50c9117e279c3fbfa63a23cf7ce2e.zip |
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')
-rw-r--r-- | tools/gpio/lsgpio.c | 2 |
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; |