diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-07-15 18:11:21 (GMT) |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-07-15 18:53:05 (GMT) |
commit | d93c768e66d8c3970187c179a91a2553b077d9e8 (patch) | |
tree | 04f462bddbc0d3a01b1c5e4ccbe8d551b1216346 /drivers/char/pcmcia | |
parent | 42c59208219a2d43f0dde94bebc68c20b95b13ce (diff) | |
download | linux-fsl-qoriq-d93c768e66d8c3970187c179a91a2553b077d9e8.tar.xz |
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 59ca351..e4a4fbd 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) DEBUGP(4, dev, "CMM_ABSENT flag set\n"); goto out; } - rc = EINVAL; + rc = -EINVAL; if (_IOC_TYPE(cmd) != CM_IOC_MAGIC) { DEBUGP(4, dev, "ioctype mismatch\n"); |