Apply Tizen Coding Rule 40/149240/1
authorpr.jung <pr.jung@samsung.com>
Tue, 12 Sep 2017 02:39:07 +0000 (11:39 +0900)
committerpr.jung <pr.jung@samsung.com>
Tue, 12 Sep 2017 02:39:07 +0000 (11:39 +0900)
Change-Id: Iee4d1648248874f17bcc5acdf3c484df11a1fa51
Signed-off-by: pr.jung <pr.jung@samsung.com>
src/check.c
src/parser.c

index 8c48b20..4b31aae 100644 (file)
@@ -328,9 +328,8 @@ static const char *profile_str_pattern(int pattern)
 
        if (prof == PROFILE_MOBILE) {
                for (i = 0; i < profile_get_num_of_pattern(); i++) {
-                       if (pattern == mobile_str_pattern[i].id) {
+                       if (pattern == mobile_str_pattern[i].id)
                                return mobile_str_pattern[i].string;
-                       }
                }
        } else if (prof == PROFILE_WEARABLE) {
                for (i = 0; i < profile_get_num_of_pattern(); i++) {
index 87af328..4387943 100644 (file)
@@ -189,9 +189,8 @@ int feedback_load_config(const char *path,
                return -ENOMEM; //LCOV_EXCL_LINE System Error
        }
 
-       for (i = 0; i < profile->get_num_of_pattern(); i++) {
+       for (i = 0; i < profile->get_num_of_pattern(); i++)
                info->data[i].pattern = -1;
-       }
 
        ret = config_parse(path, load_config, info);
        if (ret < 0)