[PATCH] serial: trivial code flow simplification
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Wed, 14 Feb 2007 08:33:05 +0000 (00:33 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 14 Feb 2007 16:09:52 +0000 (08:09 -0800)
commit9b22271d4b8c1be8a81563c322d3f04e7cbe2153
tree273fb795f79259cc9fb30c1063719e078b3fa88d
parent40b36daad0ac704e6d5c1b75789f371ef5b053c1
[PATCH] serial: trivial code flow simplification

Return failure immediately, so we don't have to test it twice.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Cc: Adam Belay <ambx1@neo.rr.com>
Cc: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/serial/8250_pnp.c