]> git.ipfire.org Git - people/jschlag/ipfire-2.x.git/commitdiff
wirelessctrl: Remove some unused code
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 4 Feb 2016 14:31:53 +0000 (14:31 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 4 Feb 2016 14:31:53 +0000 (14:31 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/misc-progs/wirelessctrl.c

index 4a2e6dc862d371f6cb9647766de2a9fd809df11b..b2d37166234d9f5650d7089219d89ea056639edc 100644 (file)
@@ -39,7 +39,6 @@ void exithandler(void) {
 }
 
 int main(void) {
-       char green_dev[STRING_SIZE] = "";
        char buffer[STRING_SIZE];
        char *index, *ipaddress, *macaddress, *enabled;
        struct keyvalue *kv = NULL;
@@ -68,14 +67,6 @@ int main(void) {
                exit(1);
        }
 
-       /* Get the GREEN interface details */
-       if (findkey(kv, "GREEN_DEV", green_dev) > 0) {
-               if (!VALID_DEVICE(green_dev)) {
-                       fprintf(stderr, "Bad GREEN_DEV: %s\n", green_dev);
-                       exit(1);
-               }
-       }
-
        /* Get the BLUE interface details */
        if (findkey(kv, "BLUE_DEV", blue_dev) > 0) {
                if ((strlen(blue_dev) > 0) && !VALID_DEVICE(blue_dev)) {