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
@ -979,8 +979,9 @@ static ssize_t cmm_read(struct file *filp, __user char *buf, size_t count,
|
|||||||
if (dev->flags0 & 1) {
|
if (dev->flags0 & 1) {
|
||||||
set_bit(IS_CMM_ABSENT, &dev->flags);
|
set_bit(IS_CMM_ABSENT, &dev->flags);
|
||||||
rc = -ENODEV;
|
rc = -ENODEV;
|
||||||
|
} else {
|
||||||
|
rc = -EIO;
|
||||||
}
|
}
|
||||||
rc = -EIO;
|
|
||||||
goto release_io;
|
goto release_io;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user