mirror of
https://github.com/torvalds/linux.git
synced 2024-12-26 12:52:30 +00:00
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>
This commit is contained in:
parent
f6a49e5a3f
commit
691998fac6
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user