From: Dominik Brodowski Date: Tue, 15 Jul 2008 18:11:21 +0000 (+0200) Subject: pcmcia: fix return value in cm4000_cs.c X-Git-Tag: upstream/snapshot3+hdmi~24320^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d93c768e66d8c3970187c179a91a2553b077d9e8;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git pcmcia: fix return value in cm4000_cs.c should be -EINVAL, not EINVAL. Found by Peter Stuge. Signed-off-by: Dominik Brodowski --- 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");