projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aeb11a9
)
i2cdetect: use break instead of goto in list_i2c_busses_and_exit()
author
Bartosz Golaszewski
<bartekgola@gmail.com>
Fri, 5 Jun 2015 08:27:32 +0000
(10:27 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Sun, 7 Jun 2015 16:05:47 +0000
(18:05 +0200)
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>
miscutils/i2c_tools.c
patch
|
blob
|
history
diff --git
a/miscutils/i2c_tools.c
b/miscutils/i2c_tools.c
index 2f501cd9cad1b26fb592ef04440607599977df72..38d90ff10a85d42cab459cdc73cfb9ec0bd75024 100644
(file)
--- 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