- very minor shrinkage
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 16 May 2008 16:55:17 +0000 (16:55 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 16 May 2008 16:55:17 +0000 (16:55 -0000)
  odd that this saved 1byte. And there could be something wrong with
  ifcombine or the like since omitting the braces produces bigger code?

networking/libiproute/ll_addr.c

index ab5a2c522c46035a39371376bf705a1324ac1409..e732efdb2c55902e72e8b8dd9e5d3b6369e56c2e 100644 (file)
@@ -64,11 +64,7 @@ int ll_addr_a2n(unsigned char *lladdr, int len, char *arg)
                                *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;
                        }