mirror of
https://git.busybox.net/busybox.git
synced 2024-11-27 07:33:26 +08:00
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>
This commit is contained in:
parent
aeb11a9496
commit
d90899206d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user