Any error will be properly handled by open() call in next statement anyway.
Change-Id: Ic92433adbaad9065bf6db2759b32f055c23179c5
* @param[in] filename The file name
* @return A fd wrapper struct on valid file, else NULL
*/
-struct fd_info * handle_file(char const * filename)
+struct fd_info *handle_file(char const *filename)
{
assert(filename);
int r;
int fd;
- if (!strlen(filename)) {
- fprintf(stderr, "Empty filename given\n");
- return NULL;
- }
-
fd = open(filename, O_RDONLY);
if (fd < 0) {
fprintf(stderr, "File \"%s\" could not be opened: %m\n", filename);