From a95e6625bfe2607612f644627ef4c1b7a858ad2e Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Tue, 1 Aug 2017 11:46:28 +0900 Subject: [PATCH] Fix logical error detected by static analysis tool Expression 'key < REMOTE_CONTROL_KEY_ENTER' is always false , which may be caused by a logical error Change-Id: Ie499057a6281ddb68927c644cd0beb024196b385 Signed-off-by: Jihoon Kim --- ism/src/isf_remote_control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ism/src/isf_remote_control.cpp b/ism/src/isf_remote_control.cpp index be8c5df..bd70e85 100644 --- a/ism/src/isf_remote_control.cpp +++ b/ism/src/isf_remote_control.cpp @@ -398,7 +398,7 @@ EXAPI int remote_control_input_resource_changed_callback_unset(remote_control_cl EXAPI int remote_control_send_key_event(remote_control_client *client, remote_control_key_type_e key) { - if (client == NULL || key < REMOTE_CONTROL_KEY_ENTER || key > REMOTE_CONTROL_KEY_CANCEL) { + if (client == NULL || key > REMOTE_CONTROL_KEY_CANCEL) { LOGE ("REMOTE_CONTROL_INVALID_PARAMETER"); return REMOTE_CONTROL_INVALID_PARAMETER; } -- 2.7.4