display: state-transition: Add break statement 28/293928/1
authorYunhee Seo <yuni.seo@samsung.com>
Thu, 8 Jun 2023 06:33:16 +0000 (15:33 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Thu, 8 Jun 2023 06:35:38 +0000 (15:35 +0900)
Add missing break statement for code improvement,
It is reported by svace/coverity code analysis.

Change-Id: If73d9b09de7cd6f2885be38938a80213c62e4c53
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
src/display/display-state-transition.c

index 002f838..126d77b 100644 (file)
@@ -131,8 +131,10 @@ int display_state_transition_set_custom_timeout(enum state_t state, unsigned int
        switch (state) {
        case S_NORMAL:
                custom_normal_timeout = timeout;
+               break;
        case S_LCDDIM:
                custom_dim_timeout = timeout;
+               break;
        default:
                display_plugin_state_get_name(state, &state_name);
                _W("%s state has no custom timeout", state_name);
@@ -151,8 +153,10 @@ int display_state_transition_get_custom_timeout(enum state_t state, unsigned int
        switch (state) {
        case S_NORMAL:
                *timeout = custom_normal_timeout;
+               break;
        case S_LCDDIM:
                *timeout = custom_dim_timeout;
+               break;
        default:
                *timeout = 0;
                display_plugin_state_get_name(state, &state_name);