iio: imu: mpu6050: fix possible NULL dereferences

Fix possible null dereferencing of i2c and spi driver data.

Signed-off-by: Matt Ranostay <matt.ranostay@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
Matt Ranostay 2016-03-02 19:18:12 -08:00 • committed by Jonathan Cameron
commit 140afdd962
2 changed files with 4 additions and 2 deletions