diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2011-04-13 01:47:56 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2011-04-13 01:47:56 +0200 |
commit | e48e2912023b5600d291904b0f7b0017387e8cb2 (patch) | |
tree | c2a4d569cbeca5102e89c0be1357d77aea0fe947 /extras/firmware | |
parent | ff2c503df091e6e4e9ab48cdb6df6ec8b7b525d0 (diff) |
trivial cleanups
Diffstat (limited to 'extras/firmware')
-rw-r--r-- | extras/firmware/firmware.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/extras/firmware/firmware.c b/extras/firmware/firmware.c index f2df76c8c5..36ce79054c 100644 --- a/extras/firmware/firmware.c +++ b/extras/firmware/firmware.c @@ -43,7 +43,7 @@ static bool set_loading(struct udev *udev, char *loadpath, const char *state) static bool copy_firmware(struct udev *udev, const char *source, const char *target, size_t size) { char *buf; - FILE *fsource, *ftarget; + FILE *fsource = NULL, *ftarget = NULL; bool ret = false; buf = malloc(size); @@ -112,8 +112,6 @@ int main(int argc, char **argv) break; case 'h': printf("Usage: firmware --firmware=<fwfile> --devpath=<path> [--help]\n\n"); - default: - rc = 1; goto exit; } } |