diff options
author | Joe Perches <joe@perches.com> | 2009-12-15 19:47:45 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-16 10:20:12 -0500 |
commit | 1f2c19f8c959c1d0ccd3e33b1f480593b66d95dd (patch) | |
tree | 8ab3a0058d9bfefcefbcd47eb1286559220e25b0 /drivers/parport | |
parent | ac2b3e67dd59b8c6ef8c199641444c6ea03535a6 (diff) |
parport_pc.c: use correct length in strncmp
Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/parport')
-rw-r--r-- | drivers/parport/parport_pc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/parport/parport_pc.c b/drivers/parport/parport_pc.c index 2597145a066e..ad113b0f62db 100644 --- a/drivers/parport/parport_pc.c +++ b/drivers/parport/parport_pc.c | |||
@@ -3403,7 +3403,7 @@ static int __init parport_parse_param(const char *s, int *val, | |||
3403 | *val = automatic; | 3403 | *val = automatic; |
3404 | else if (!strncmp(s, "none", 4)) | 3404 | else if (!strncmp(s, "none", 4)) |
3405 | *val = none; | 3405 | *val = none; |
3406 | else if (nofifo && !strncmp(s, "nofifo", 4)) | 3406 | else if (nofifo && !strncmp(s, "nofifo", 6)) |
3407 | *val = nofifo; | 3407 | *val = nofifo; |
3408 | else { | 3408 | else { |
3409 | char *ep; | 3409 | char *ep; |