From 61b8e370ca14f1cba6e3532e9ea83bfba80c3ae6 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 7 May 2015 18:09:02 -0400 Subject: [PATCH] file_ops: Get rid of unnecessary if statement fread won't null out the given buffer; nullity is already checked above the fread call. --- file_ops.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/file_ops.c b/file_ops.c index 1bb01fc3c7..664bd12022 100644 --- a/file_ops.c +++ b/file_ops.c @@ -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) RARCH_WARN("Didn't read whole file.\n"); - if (!content_buf) - goto error; - *buf = content_buf; /* Allow for easy reading of strings to be safe.