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>
if (reply == -ENODEV) {
_E("Set display rotation is not supported");
return DEVICE_ERROR_OPERATION_FAILED;
- } else if (ret < 0) {
+ } else if (reply < 0) {
_E("Failed to set display rotation angle");
return DEVICE_ERROR_OPERATION_FAILED;
}