diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-01 22:17:44 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-01 22:17:44 +0200 |
commit | d834c16516d1ebec4766fc58c059bf01311e6045 (patch) | |
tree | 8095561ebb7b01bd21e1f6ca548a3ea0b2bca675 /lib/genalloc.c | |
parent | [PATCH] rtc-sysfs fix (diff) | |
download | linux-d834c16516d1ebec4766fc58c059bf01311e6045.tar.xz linux-d834c16516d1ebec4766fc58c059bf01311e6045.zip |
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>
Diffstat (limited to 'lib/genalloc.c')
0 files changed, 0 insertions, 0 deletions