← Commit list

d90899206

Bartosz Golaszewski
Bartosz Golaszewski
2015-06-07
SUCCESS Duration: 260s

Subject

i2cdetect: use break instead of goto in list_i2c_busses_and_exit()

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

miscutils/i2c_tools.c+1 -2
@@ -1226,12 +1226,11 @@ static void NORETURN list_i2c_busses_and_exit(void)
i2cdev_path, de->d_name,
subde->d_name);
fp = fopen(path, "r");
- goto found;
+ break;
}
}
}
-found:
if (fp != NULL) {
/*
* Get the rest of the info and display a line