From 196cb33f1cbc29ba13edb5dd0b81d962964e5734 Mon Sep 17 00:00:00 2001 From: "pr.jung" Date: Tue, 12 Sep 2017 11:33:56 +0900 Subject: [PATCH] Apply Tizen Coding Rule Change-Id: Ia7f9dc80a77e9a90df8f58219a568c56850ceff1 Signed-off-by: pr.jung --- src/haptic/gpio_haptic.c | 2 +- src/haptic/standard-vibcore.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/haptic/gpio_haptic.c b/src/haptic/gpio_haptic.c index a634f6c..d7ef955 100755 --- a/src/haptic/gpio_haptic.c +++ b/src/haptic/gpio_haptic.c @@ -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"); diff --git a/src/haptic/standard-vibcore.c b/src/haptic/standard-vibcore.c index df6278e..510b717 100644 --- a/src/haptic/standard-vibcore.c +++ b/src/haptic/standard-vibcore.c @@ -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) { -- 2.7.4