From: Linus Torvalds Date: Sun, 1 Oct 2006 20:17:44 +0000 (-0700) Subject: pccard_store_cis: fix wrong error handling X-Git-Tag: v2.6.19-rc1~489 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d834c16516d1ebec4766fc58c059bf01311e6045;p=pandora-kernel.git 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 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 --- Reading git-diff-tree failed