Skip to content
Commit d834c165 authored by Linus Torvalds's avatar Linus Torvalds
Browse files

pccard_store_cis: fix wrong error handling



The test for the error from pcmcia_replace_cis() was incorrect, and
would always trigger (because if an error didn't happen, the "ret" value
would not be zero, it would be the passed-in count).

Reported and debugged by Fabrice Bellet <fabrice@bellet.info>

Rather than just fix the single broken test, make the code in question
use an understandable code-sequence instead, fixing the whole function
to be more readable.

Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 4e9011d5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment