diff options
author | Bartosz Golaszewski | 2015-06-05 10:27:32 +0200 |
---|---|---|
committer | Denys Vlasenko | 2015-06-07 18:05:47 +0200 |
commit | d90899206dd96b4c18064c18afc3b856382e64d4 (patch) | |
tree | 2b99a2ba4be472e765c091c046009192a6ab4b2d | |
parent | aeb11a949667f82173c733e55e9f762c56a1fcba (diff) | |
download | busybox-d90899206dd96b4c18064c18afc3b856382e64d4.zip busybox-d90899206dd96b4c18064c18afc3b856382e64d4.tar.gz |
i2cdetect: use break instead of goto in list_i2c_busses_and_exit()
Since there are now more statements in the if block after the while loop
in list_i2c_busses_and_exit(), there's no need for a label.
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | miscutils/i2c_tools.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/miscutils/i2c_tools.c b/miscutils/i2c_tools.c index 2f501cd..38d90ff 100644 --- a/miscutils/i2c_tools.c +++ b/miscutils/i2c_tools.c @@ -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 |