summaryrefslogtreecommitdiff
path: root/extras/firmware/firmware.c
diff options
context:
space:
mode:
Diffstat (limited to 'extras/firmware/firmware.c')
-rw-r--r--extras/firmware/firmware.c4
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;
}
}