TTY: simserial, remove static initialization
authorJiri Slaby <jslaby@suse.cz>
Mon, 5 Mar 2012 13:52:28 +0000 (14:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Mar 2012 20:48:26 +0000 (12:48 -0800)
commitfd2d7a6e60068779bc72029f867b51d3dc2fe0cc
treecfa68f135a001233d2cef7bfad0ca4cf684230d2
parent01bd730d92bd002adc3f3317d8e3328c629b436c
TTY: simserial, remove static initialization

We do not use any of the preinitialized rs_state members for something
real. So there is no need to initialize them. At the places we used
them for printing, just print the values.

And since only one port is supported, get rid of the loop. This
simplifies simrs_init a heap. Thus we can handle fail paths in a
standard way without panicing.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/ia64/hp/sim/simserial.c