iio: imu: nvi: Fix coverity
authorErik Lilliebjerg <elilliebjerg@nvidia.com>
Wed, 28 Dec 2016 13:41:15 +0000 (06:41 -0700)
committermobile promotions <svcmobile_promotions@nvidia.com>
Tue, 10 Jan 2017 03:20:37 +0000 (19:20 -0800)
commit095027e79a89968babab78a3e9de398ee131728d
treea6e88c70d0948dc3be052c3c03c3bba07eee65d3
parentdee4048d8cb60b1ec497869a67edc826fac29104
iio: imu: nvi: Fix coverity

- Fix bad shift.
- Fix uninitialized scalar variable.

Coverity ID: 38965
Coverity ID: 38966
Coverity ID: 38967
Coverity ID: 38968
Coverity ID: 38969
Coverity ID: 38971

Bug 200192580

Change-Id: I2a972f00a7097f61c943ad035dc23d50f9f8e2e7
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/1277691
(cherry picked from commit 2f8d063e538089007d6b0c5234cce1229620ece0)
Reviewed-on: http://git-master/r/1281938
Reviewed-by: Akhilesh Khumbum <akhumbum@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>
drivers/iio/imu/nvi_mpu/nvi.c
drivers/iio/imu/nvi_mpu/nvi_dmp_icm.c