]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/ata/libata-core.c
Merge branch 'for-4.13' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/libata
[karo-tx-linux.git] / drivers / ata / libata-core.c
index d1b2c6b5f6802411ba10e018676007eaed3e4b94..8453f9a4682f855e910f59d1d78860f639d4bf59 100644 (file)
@@ -6874,7 +6874,7 @@ static int __init ata_parse_force_one(char **cur,
        }
 
        force_ent->port = simple_strtoul(id, &endp, 10);
-       if (p == endp || *endp != '\0') {
+       if (id == endp || *endp != '\0') {
                *reason = "invalid port/link";
                return -EINVAL;
        }