display: fix error handling in rotation API 51/287051/1
authorTaeminYeom <taemin.yeom@samsung.com>
Thu, 19 Jan 2023 06:13:25 +0000 (15:13 +0900)
committerTaeminYeom <taemin.yeom@samsung.com>
Thu, 19 Jan 2023 06:13:25 +0000 (15:13 +0900)
commit5cfbe6c502712b77f487eec886e5da3b3be076bd
treec993ed65c3a42098d55703073ed4d4f9de3beb63
parent06effe44cadedac12d0ad77a57311a7a8615f911
display: fix error handling in rotation API

Previous else if statement was unreachable
because negative "ret" value situation is already handled above code.
The else if statement should handle the situation that deviced operation failed,
so it should check "reply", not "ret".

Change-Id: I65d842e7cd46afcd244b8fbdb5a1af7d03444f2d
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
src/display.c