mirror of
https://github.com/libretro/RetroArch
synced 2025-01-17 10:18:17 +00:00
file_ops: Get rid of unnecessary if statement
fread won't null out the given buffer; nullity is already checked above the fread call.
This commit is contained in:
parent
f2d481f421
commit
61b8e370ca
@ -120,9 +120,6 @@ static int read_generic_file(const char *path, void **buf, ssize_t *len)
|
|||||||
if ((ret = fread(content_buf, 1, content_buf_size, file)) < content_buf_size)
|
if ((ret = fread(content_buf, 1, content_buf_size, file)) < content_buf_size)
|
||||||
RARCH_WARN("Didn't read whole file.\n");
|
RARCH_WARN("Didn't read whole file.\n");
|
||||||
|
|
||||||
if (!content_buf)
|
|
||||||
goto error;
|
|
||||||
|
|
||||||
*buf = content_buf;
|
*buf = content_buf;
|
||||||
|
|
||||||
/* Allow for easy reading of strings to be safe.
|
/* Allow for easy reading of strings to be safe.
|
||||||
|
Loading…
Reference in New Issue
Block a user