From: Md. Omar Faruque Date: Tue, 11 Jun 2024 14:21:00 +0000 (-0400) Subject: Static Analysis UNREACHABLE_CODE.RET X-Git-Tag: accepted/tizen/unified/20240612.160737^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen;p=apps%2Fnative%2Fboot-animation.git Static Analysis UNREACHABLE_CODE.RET [Project] TizenUICore [BinType] AP [Customer] ALL [Issue#] N/A [Request] Dev [Occurrence Version] 0.3.8 [Problem] Static Analysis UNREACHABLE_CODE.RET [Cause & Measure] Fail case condition missing. [Checking Method] Self-test [Team] SRBD Tizen UI Core [Developer] Md. Omar Faruque [omar.faruque] [Solution company] SRBD [Change Type] Code change Change-Id: Ie292c1a5efc58870b7392d0066a51f992b13bc82 Signed-off-by: Md. Omar Faruque --- diff --git a/src/boot.c b/src/boot.c index bf259ae..d3b335d 100755 --- a/src/boot.c +++ b/src/boot.c @@ -120,7 +120,7 @@ int main(int argc, char *argv[]) int boot_type = -1; boot_type = __check_on_off_type(&args); - if (boot_type < 0) { + if (boot_type <= 0) { __E("Failed to get on off type or UNKNOWN_TYPE: %d", boot_type); return 1; }