kgdbts: fix return value of __setup handler
[linux-2.6-microblaze.git] / drivers / misc / kgdbts.c
index 67c5b45..88b91ad 100644 (file)
@@ -1070,10 +1070,10 @@ static int kgdbts_option_setup(char *opt)
 {
        if (strlen(opt) >= MAX_CONFIG_LEN) {
                printk(KERN_ERR "kgdbts: config string too long\n");
-               return -ENOSPC;
+               return 1;
        }
        strcpy(config, opt);
-       return 0;
+       return 1;
 }
 
 __setup("kgdbts=", kgdbts_option_setup);