tools/gpio: Add missing initialization of device_name
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 25 Mar 2016 12:36:30 +0000 (13:36 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 31 Mar 2016 09:51:30 +0000 (11:51 +0200)
commit691998fac6f50c9117e279c3fbfa63a23cf7ce2e
tree75a3cf949c830fda3cf45fe7cfdc3085be414359
parentf6a49e5a3f5562855f9e4b9b81916b06ef673771
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>
tools/gpio/lsgpio.c