提交 691998fa 编写于 作者: G Geert Uytterhoeven 提交者: Linus Walleij

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: NGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 f6a49e5a
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册