From a83132c967bf62666d1199b97016093658d154f6 Mon Sep 17 00:00:00 2001 From: "kibak.yoon" Date: Mon, 25 Apr 2016 17:56:26 +0900 Subject: [PATCH] capi-sensor: remove brackets for coding convention checker Change-Id: Id6c38f04d03d27372cf963f90bf464af03e6084b Signed-off-by: kibak.yoon --- src/fusion_util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.7.4