From 627c86721f6202b02f1fb383e7bce062a1b1722a Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 27 Apr 2019 13:35:28 +0200 Subject: [PATCH] (task_patch) Get rid of extraneous filestream_exists checks - we already check if the file exists with path_is_valid --- tasks/task_patch.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/task_patch.c b/tasks/task_patch.c index 5f9b82da12..44e825f5fd 100644 --- a/tasks/task_patch.c +++ b/tasks/task_patch.c @@ -545,7 +545,7 @@ static bool try_bps_patch(bool allow_bps, const char *name_bps, uint8_t **buf, ssize_t *size) { if (allow_bps && !string_is_empty(name_bps)) - if (path_is_valid(name_bps) && filestream_exists(name_bps)) + if (path_is_valid(name_bps)) { int64_t patch_size; bool ret = false; @@ -572,7 +572,7 @@ static bool try_ups_patch(bool allow_ups, const char *name_ups, uint8_t **buf, ssize_t *size) { if (allow_ups && !string_is_empty(name_ups)) - if (path_is_valid(name_ups) && filestream_exists(name_ups)) + if (path_is_valid(name_ups)) { int64_t patch_size; bool ret = false; @@ -599,7 +599,7 @@ static bool try_ips_patch(bool allow_ips, const char *name_ips, uint8_t **buf, ssize_t *size) { if (allow_ips && !string_is_empty(name_ips)) - if (path_is_valid(name_ips) && filestream_exists(name_ips)) + if (path_is_valid(name_ips)) { int64_t patch_size; bool ret = false;