Skip to content

Commit

Permalink
pcmcia/cm4000: fix error code
Browse files Browse the repository at this point in the history
I'm assuming it's not intended to instantly change the error code
from -ENODEV to -EIO, is it?

Signed-off-by: Nicolas Kaiser <[email protected]>
Acked-by: Harald Welte <[email protected]>
Signed-off-by: Dominik Brodowski <[email protected]>
  • Loading branch information
nikai3d authored and Dominik Brodowski committed Nov 10, 2010
1 parent 006839f commit 20fffee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/char/pcmcia/cm4000_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 20fffee

Please sign in to comment.