diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-07-15 14:11:21 -0400 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-07-15 14:53:05 -0400 |
commit | d93c768e66d8c3970187c179a91a2553b077d9e8 (patch) | |
tree | 04f462bddbc0d3a01b1c5e4ccbe8d551b1216346 /drivers/char/pcmcia | |
parent | 42c59208219a2d43f0dde94bebc68c20b95b13ce (diff) |
pcmcia: fix return value in cm4000_cs.c
should be -EINVAL, not EINVAL. Found by Peter Stuge.
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/char/pcmcia')
-rw-r--r-- | drivers/char/pcmcia/cm4000_cs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/pcmcia/cm4000_cs.c b/drivers/char/pcmcia/cm4000_cs.c index 59ca35156d81..e4a4fbd37d7a 100644 --- a/drivers/char/pcmcia/cm4000_cs.c +++ b/drivers/char/pcmcia/cm4000_cs.c | |||
@@ -1439,7 +1439,7 @@ static long cmm_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) | |||
1439 | DEBUGP(4, dev, "CMM_ABSENT flag set\n"); | 1439 | DEBUGP(4, dev, "CMM_ABSENT flag set\n"); |
1440 | goto out; | 1440 | goto out; |
1441 | } | 1441 | } |
1442 | rc = EINVAL; | 1442 | rc = -EINVAL; |
1443 | 1443 | ||
1444 | if (_IOC_TYPE(cmd) != CM_IOC_MAGIC) { | 1444 | if (_IOC_TYPE(cmd) != CM_IOC_MAGIC) { |
1445 | DEBUGP(4, dev, "ioctype mismatch\n"); | 1445 | DEBUGP(4, dev, "ioctype mismatch\n"); |