TTY: cyclades, add local pointer for card
authorJiri Slaby <jslaby@suse.cz>
Mon, 4 Jun 2012 11:35:15 +0000 (13:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Jun 2012 22:50:23 +0000 (15:50 -0700)
commit718c4ca1f721be3ae67f9ff7d43b9a910e4a1ec3
tree72e4e17b5b3ef534c823c21efdb2ab2d743fca80
parentee4cd1b225368abed7e0f4d344f1e9a93e87b98e
TTY: cyclades, add local pointer for card

cy_pci_probe and cy_detect_isa reference cy_card[card_no] many times.
It makes the code hard to read. Let us add a local variable holding a
pointer to the card indexed by card_no and use that.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/cyclades.c