Linus Torvalds d834c16516 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: Linus Torvalds <torvalds@osdl.org>
2006-10-01 13:17:44 -07:00
..
2006-10-01 00:39:18 -07:00
2006-10-01 00:39:17 -07:00
2006-10-01 10:39:01 -07:00
2006-07-12 15:38:28 -07:00
2006-08-10 07:31:37 -04:00
2006-08-10 07:31:37 -04:00