Commit edead9b1 authored by Heena Sirwani's avatar Heena Sirwani Committed by Greg Kroah-Hartman

Staging: iio: Documentation: Simplify error handling.

This also has the nice effect of removing of a temporary variable from stack and
fixes the following checkpatch.pl warning:
WARNING: Missing blank line after declarations.
Signed-off-by: default avatarHeena Sirwani <heenasirwani@gmail.com>
Acked-by: default avatarDaniel Baluta <daniel.baluta@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d1e50413
......@@ -69,11 +69,8 @@ static int dump_one_device(const char *dev_dir_name)
read_sysfs_string("name", dev_dir_name, name);
printf("Device %03d: %s\n", dev_idx, name);
if (verblevel >= VERBLEVEL_SENSORS) {
int ret = dump_channels(dev_dir_name);
if (ret)
return ret;
}
if (verblevel >= VERBLEVEL_SENSORS)
return dump_channels(dev_dir_name);
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment