summaryrefslogtreecommitdiffstats
path: root/drivers/char/pcmcia
diff options
context:
space:
mode:
authorNicolas Kaiser <nikai@nikai.net>2010-10-22 18:10:24 +0200
committerDominik Brodowski <linux@dominikbrodowski.net>2010-11-10 14:29:09 +0100
commit20fffee818ec43b64f58ab25c42705b7dcae16e5 (patch)
tree3da1a6950c7ca7b55e36ce2d553f3c73904a623a /drivers/char/pcmcia
parent006839f12e9dc484a6227b263843f987abb709a4 (diff)
downloadop-kernel-dev-20fffee818ec43b64f58ab25c42705b7dcae16e5.zip
op-kernel-dev-20fffee818ec43b64f58ab25c42705b7dcae16e5.tar.gz
pcmcia/cm4000: fix error code
I'm assuming it's not intended to instantly change the error code from -ENODEV to -EIO, is it? Signed-off-by: Nicolas Kaiser <nikai@nikai.net> Acked-by: Harald Welte <laforge@gnumonks.org> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/char/pcmcia')
-rw-r--r--drivers/char/pcmcia/cm4000_cs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/char/pcmcia/cm4000_cs.c b/drivers/char/pcmcia/cm4000_cs.c
index d962f25..777181a 100644
--- a/drivers/char/pcmcia/cm4000_cs.c
+++ b/drivers/char/pcmcia/cm4000_cs.c
@@ -979,8 +979,9 @@ static ssize_t cmm_read(struct file *filp, __user char *buf, size_t count,
if (dev->flags0 & 1) {
set_bit(IS_CMM_ABSENT, &dev->flags);
rc = -ENODEV;
+ } else {
+ rc = -EIO;
}
- rc = -EIO;
goto release_io;
}
OpenPOWER on IntegriCloud