Loading tools/gpio/lsgpio.c +2 −1 Original line number Diff line number Diff line Loading @@ -94,7 +94,7 @@ int list_device(const char *device_name) if (fd == -1) { ret = -errno; fprintf(stderr, "Failed to open %s\n", chrdev_name); goto exit_close_error; goto exit_free_name; } /* Inspect this GPIO chip */ Loading Loading @@ -141,6 +141,7 @@ int list_device(const char *device_name) exit_close_error: if (close(fd) == -1) perror("Failed to close GPIO character device file"); exit_free_name: free(chrdev_name); return ret; } Loading Loading
tools/gpio/lsgpio.c +2 −1 Original line number Diff line number Diff line Loading @@ -94,7 +94,7 @@ int list_device(const char *device_name) if (fd == -1) { ret = -errno; fprintf(stderr, "Failed to open %s\n", chrdev_name); goto exit_close_error; goto exit_free_name; } /* Inspect this GPIO chip */ Loading Loading @@ -141,6 +141,7 @@ int list_device(const char *device_name) exit_close_error: if (close(fd) == -1) perror("Failed to close GPIO character device file"); exit_free_name: free(chrdev_name); return ret; } Loading