diff options
author | Joe Perches <joe@perches.com> | 2009-12-15 16:47:45 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-16 07:20:12 -0800 |
commit | 1f2c19f8c959c1d0ccd3e33b1f480593b66d95dd (patch) | |
tree | 8ab3a0058d9bfefcefbcd47eb1286559220e25b0 /drivers/parport/parport_pc.c | |
parent | ac2b3e67dd59b8c6ef8c199641444c6ea03535a6 (diff) | |
download | talos-obmc-linux-1f2c19f8c959c1d0ccd3e33b1f480593b66d95dd.tar.gz talos-obmc-linux-1f2c19f8c959c1d0ccd3e33b1f480593b66d95dd.zip |
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/parport_pc.c')
-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, *val = automatic; else if (!strncmp(s, "none", 4)) *val = none; - else if (nofifo && !strncmp(s, "nofifo", 4)) + else if (nofifo && !strncmp(s, "nofifo", 6)) *val = nofifo; else { char *ep; |