From: kibak.yoon Date: Mon, 25 Apr 2016 08:56:26 +0000 (+0900) Subject: capi-sensor: remove brackets for coding convention checker X-Git-Tag: submit/tizen/20160426.040753^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a83132c967bf62666d1199b97016093658d154f6;p=platform%2Fcore%2Fapi%2Fsensor.git capi-sensor: remove brackets for coding convention checker Change-Id: Id6c38f04d03d27372cf963f90bf464af03e6084b Signed-off-by: kibak.yoon --- diff --git a/src/fusion_util.c b/src/fusion_util.c index 3a47828..b370cc8 100644 --- a/src/fusion_util.c +++ b/src/fusion_util.c @@ -130,9 +130,9 @@ int getRotationMatrix(float *accel, float *geo, float *R, float *I) float Hy = Ez*Ax - Ex*Az; float Hz = Ex*Ay - Ey*Ax; float normH = (float)sqrt(Hx*Hx + Hy*Hy + Hz*Hz); - if (normH < 0.1f) { + if (normH < 0.1f) return -1; - } + float invH = 1.0f / normH; Hx *= invH; Hy *= invH;