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: Heena Sirwani <heenasirwani@gmail.com>
Acked-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Heena Sirwani 2014-10-06 17:04:10 +05:30 коммит произвёл Greg Kroah-Hartman
Родитель d1e5041345
Коммит edead9b1f9
1 изменённых файлов: 2 добавлений и 5 удалений

Просмотреть файл

@ -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;
}