Apply Tizen Coding Rule 37/149237/1 accepted/tizen/unified/20170913.071515 submit/tizen/20170912.090359
authorpr.jung <pr.jung@samsung.com>
Tue, 12 Sep 2017 02:33:56 +0000 (11:33 +0900)
committerpr.jung <pr.jung@samsung.com>
Tue, 12 Sep 2017 02:33:56 +0000 (11:33 +0900)
Change-Id: Ia7f9dc80a77e9a90df8f58219a568c56850ceff1
Signed-off-by: pr.jung <pr.jung@samsung.com>
src/haptic/gpio_haptic.c
src/haptic/standard-vibcore.c

index a634f6c..d7ef955 100755 (executable)
@@ -354,7 +354,7 @@ static bool is_valid(void)
                state = false;
                return false;
        }
-       if(peripheral_i2c_read_register_byte(handle, DRV2605L_REGISTER_STATUS, &result) < PERIPHERAL_ERROR_NONE) {
+       if (peripheral_i2c_read_register_byte(handle, DRV2605L_REGISTER_STATUS, &result) < PERIPHERAL_ERROR_NONE) {
                _E("Failed to read peripheral I2C");
                if (peripheral_i2c_close(handle) < PERIPHERAL_ERROR_NONE)
                        _E("Failed to close peripheral I2C");
index df6278e..510b717 100644 (file)
@@ -209,9 +209,9 @@ static Eina_Bool haptic_duration_play(void *data)
                        duration_timer = ecore_timer_add((node->duration + node->wait)/1000.0f, haptic_duration_play, NULL);
 
                ret = real_vibrate_monotone(h_data->handle, node->duration, h_data->level, h_data->priority, NULL);
-               if (!next) {
+               if (!next)
                        goto out;
-               }
+
                break;
        }
        if (ret != 0) {