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-07-02 13:58:50 -07:00
2006-06-30 15:39:30 -07:00
2006-06-30 19:25:36 +02:00
2006-06-30 19:25:36 +02:00
2006-06-30 19:25:36 +02:00
2005-11-10 11:18:26 +01:00
2006-10-01 00:39:23 -07:00
2005-04-16 15:20:36 -07:00
2006-03-31 17:02:26 +02:00
2006-03-31 17:26:33 +02:00
2006-06-30 22:09:13 +02:00
2006-03-31 17:15:53 +02:00
2006-06-02 00:56:17 +02:00
2006-07-02 13:58:50 -07:00
2006-07-02 13:58:50 -07:00
2006-01-05 23:41:09 +01:00
2006-07-02 13:58:50 -07:00
2005-04-16 15:20:36 -07:00
2006-07-10 13:24:12 -07:00
2006-06-27 17:32:39 -07:00
2006-06-30 19:25:36 +02:00
2005-06-21 19:07:30 -07:00
2006-06-30 19:25:36 +02:00
2005-04-16 15:20:36 -07:00
2006-03-31 17:05:41 +02:00
2005-07-28 08:39:01 -07:00
2006-10-01 00:39:25 -07:00
2006-07-31 13:28:41 -07:00
2006-07-31 13:28:41 -07:00
2006-07-02 13:58:50 -07:00
2005-04-16 15:20:36 -07:00
2006-06-30 19:25:36 +02:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-01-10 17:16:12 +00:00
2006-04-18 23:18:53 +01:00
2005-04-16 15:20:36 -07:00
2006-03-31 17:02:39 +02:00
2006-06-27 09:24:00 -07:00
2006-06-30 19:25:36 +02:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-06-19 15:37:31 +01:00
2006-03-31 17:02:26 +02:00
2006-06-30 19:25:36 +02:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-07-26 19:21:47 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-06-30 19:25:36 +02:00
2005-04-16 15:20:36 -07:00
2006-07-02 15:07:45 -07:00
2005-07-07 18:24:07 -07:00
2006-10-01 13:17:44 -07:00
2006-06-27 09:23:59 -07:00
2005-04-16 15:20:36 -07:00
2006-06-30 22:09:11 +02:00
2005-09-07 16:57:21 -07:00
2005-04-16 15:20:36 -07:00
2006-07-02 13:58:50 -07:00
2006-07-02 13:58:50 -07:00
2006-01-10 13:39:07 +00:00
2006-07-02 13:58:50 -07:00
2005-09-07 16:57:21 -07:00