misc: kgdbts: Fix restrict error
[sfrench/cifs-2.6.git] / drivers / misc / kgdbts.c
index 6193270e7b3dcabf9c4f2befac666678b5cdb00d..de20bdaa148da1f0e2cf24e2bd97761c1443e0d6 100644 (file)
@@ -985,6 +985,12 @@ static void kgdbts_run_tests(void)
        int nmi_sleep = 0;
        int i;
 
+       verbose = 0;
+       if (strstr(config, "V1"))
+               verbose = 1;
+       if (strstr(config, "V2"))
+               verbose = 2;
+
        ptr = strchr(config, 'F');
        if (ptr)
                fork_test = simple_strtol(ptr + 1, NULL, 10);
@@ -1068,13 +1074,6 @@ static int kgdbts_option_setup(char *opt)
                return -ENOSPC;
        }
        strcpy(config, opt);
-
-       verbose = 0;
-       if (strstr(config, "V1"))
-               verbose = 1;
-       if (strstr(config, "V2"))
-               verbose = 2;
-
        return 0;
 }
 
@@ -1086,9 +1085,6 @@ static int configure_kgdbts(void)
 
        if (!strlen(config) || isspace(config[0]))
                goto noconfig;
-       err = kgdbts_option_setup(config);
-       if (err)
-               goto noconfig;
 
        final_ack = 0;
        run_plant_and_detach_test(1);