diff options
author | Stephen Warren <swarren@nvidia.com> | 2011-09-21 06:16:01 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-09-26 20:31:55 -0400 |
commit | ad31d250bf60c8e4c990e8b0daeedbaa2d6884a9 (patch) | |
tree | 31f612b6afe35a33ab5e40e01ba699126ec2ffaf /drivers/staging/iio/industrialio-core.c | |
parent | 7c6c936832a46e86b0fac654923ce5015bdc80ee (diff) |
staging:iio:magnetometer:ak8975: Fix probe() error-handling
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 <swarren@nvidia.com>
Acked-by: Andrew Chew <achew@nvidia.com>
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/iio/industrialio-core.c')
0 files changed, 0 insertions, 0 deletions