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>
This commit is contained in:
parent
006839f12e
commit
20fffee818
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue