aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--miscutils/i2c_tools.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/miscutils/i2c_tools.c b/miscutils/i2c_tools.c
index 2f501cd9c..38d90ff10 100644
--- a/miscutils/i2c_tools.c
+++ b/miscutils/i2c_tools.c
@@ -1226,12 +1226,11 @@ static void NORETURN list_i2c_busses_and_exit(void)
1226 i2cdev_path, de->d_name, 1226 i2cdev_path, de->d_name,
1227 subde->d_name); 1227 subde->d_name);
1228 fp = fopen(path, "r"); 1228 fp = fopen(path, "r");
1229 goto found; 1229 break;
1230 } 1230 }
1231 } 1231 }
1232 } 1232 }
1233 1233
1234found:
1235 if (fp != NULL) { 1234 if (fp != NULL) {
1236 /* 1235 /*
1237 * Get the rest of the info and display a line 1236 * Get the rest of the info and display a line