From: kibak.yoon Date: Mon, 27 Jun 2016 04:27:25 +0000 (+0900) Subject: sensord: clean up switch-case statement if attribute is not global. X-Git-Tag: accepted/tizen/common/20160706.142207^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a0b71120db332e7ae23da7ebb3dd1f2c8db2fa91;p=platform%2Fcore%2Fsystem%2Fsensord.git sensord: clean up switch-case statement if attribute is not global. - if it is a default attribute in switch-case statement, break and call set_attribute_int() function. Change-Id: I1bf0403ad268a8465190439acd9c1ebe320cda2c Signed-off-by: kibak.yoon --- diff --git a/src/client/client.cpp b/src/client/client.cpp index 129958c..171cb88 100644 --- a/src/client/client.cpp +++ b/src/client/client.cpp @@ -1129,10 +1129,10 @@ API int sensord_set_attribute_int(int handle, int attribute, int value) case SENSORD_ATTRIBUTE_AXIS_ORIENTATION: return change_axis_orientation(handle, value); default: - return change_attribute_int(handle, attribute, value); + break; } - return OP_SUCCESS; + return change_attribute_int(handle, attribute, value); } API int sensord_set_attribute_str(int handle, int attribute, const char *value, int value_len)