Remove repeated check for fd==NULL

This commit is contained in:
Dominic Spill
2017-02-04 00:06:23 -07:00
parent c07fb8579c
commit 35df00bd84

View File

@ -226,11 +226,6 @@ int main(int argc, char** argv)
}
}
if((read || write) && (fd == NULL)) {
fprintf(stderr, "Failed to open file: %s\n", path);
return EXIT_FAILURE;
}
result = hackrf_init();
if (result != HACKRF_SUCCESS) {
fprintf(stderr, "hackrf_init() failed: %s (%d)\n",