From: Youngjae Cho Date: Tue, 7 May 2024 00:32:04 +0000 (+0900) Subject: Remove always false condition X-Git-Tag: accepted/tizen/unified/20240508.124547^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0ebf8e69bc7e49cfef67222fe5100eda85c56b56;p=platform%2Fcore%2Fsystem%2Fupgrade.git Remove always false condition (size_t)dest_size > SIZE_MAX is always false. Change-Id: Iaefc4b21be4a42b0881f2245b525dc30df7d02c1 Signed-off-by: Youngjae Cho --- diff --git a/src/upgrade-apply/main.c b/src/upgrade-apply/main.c index a74dec2..d8fbe9b 100644 --- a/src/upgrade-apply/main.c +++ b/src/upgrade-apply/main.c @@ -148,7 +148,7 @@ struct parse_result parse_args(int argc, char **argv) if (dest_size != 0) return (struct parse_result) { .result = PARSE_REPEATED_ARGUMENT }; dest_size = atoi(optarg); - if (dest_size <= 0 || (size_t)dest_size > SIZE_MAX) + if (dest_size <= 0) return (struct parse_result) { .result = PARSE_BAD_SIZE }; break;