- very minor shrinkage
odd that this saved 1byte. And there could be something wrong with
ifcombine or the like since omitting the braces produces bigger code?
diff --git a/networking/libiproute/ll_addr.c b/networking/libiproute/ll_addr.c
index ab5a2c5..e732efd 100644
--- a/networking/libiproute/ll_addr.c
+++ b/networking/libiproute/ll_addr.c
@@ -64,11 +64,7 @@
*cp = 0;
cp++;
}
- if (sscanf(arg, "%x", &temp) != 1) {
- bb_error_msg("\"%s\" is invalid lladdr", arg);
- return -1;
- }
- if (temp < 0 || temp > 255) {
+ if (sscanf(arg, "%x", &temp) != 1 || (temp < 0 || temp > 255)) {
bb_error_msg("\"%s\" is invalid lladdr", arg);
return -1;
}