2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 14:25:39 +00:00

sensord: Break long lines in doChips()

This patch breaks long lines in function doChips().


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5796 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Andre Prendel
2009-11-04 19:12:34 +00:00
parent a079f9c35d
commit db0b1e6e11

View File

@@ -221,17 +221,18 @@ static int doChip(const sensors_chip_name *chip, int action)
static int doChips(int action)
{
const sensors_chip_name *chip;
const sensors_chip_name *chip, *chip_arg;
int i, j, ret = 0;
for (j = 0; (ret == 0) && (j < sensord_args.numChipNames); ++ j) {
for (j = 0; j < sensord_args.numChipNames; j++) {
chip_arg = &sensord_args.chipNames[j];
i = 0;
while ((ret == 0) &&
((chip = sensors_get_detected_chips(&sensord_args.chipNames[j], &i)) != NULL)) {
while ((chip = sensors_get_detected_chips(chip_arg, &i))) {
ret = doChip(chip, action);
if (ret)
return ret;
}
}
return ret;
}