[PATCH] via82cxxx: handle error condition properly
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Thu, 7 Dec 2006 04:36:12 +0000 (20:36 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Thu, 7 Dec 2006 16:39:32 +0000 (08:39 -0800)
commit23a1b2a78705caa2ecaccf8422a1e22eaca59574
tree295f176624b71ee9507198909ac2fa33f7afeac8
parent87b4126f10cce2d49687df227f6228fa5a9ac6c6
[PATCH] via82cxxx: handle error condition properly

Jeff noted that the via driver returned an error to an unsigned int in a
a case where errors are not permitted. Move the check down earlier so we
can handle it properly. Not as pretty but it works this way and avoids
hacking up ugly stuff in the legacy ide core.

Signed-off-by: Alan Cox <alan@redhat.com>
Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/ide/pci/via82cxxx.c