summaryrefslogtreecommitdiff
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 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