Fix ak8975_probe() to jump to the appropriate exit labels when an error
occurs. With the previous code, some cleanup actions were being skipped
for some error conditions.
Signed-off-by: Stephen Warren swar...@nvidia.com
---
drivers/staging/iio/magnetometer/ak8975.c |2 +-
1 files changed, 1
Fix ak8975_probe() to jump to the appropriate exit labels when an error
occurs. With the previous code, some cleanup actions were being skipped
for some error conditions.
Signed-off-by: Stephen Warren swar...@nvidia.com
---
drivers/staging/iio/magnetometer/ak8975.c |2 +-
1 files changed, 1