From: Geert Uytterhoeven Date: Fri, 25 Mar 2016 12:36:30 +0000 (+0100) Subject: tools/gpio: Add missing initialization of device_name X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=691998fac6f50c9117e279c3fbfa63a23cf7ce2e;p=linux-beck.git 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 Signed-off-by: Linus Walleij --- 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;