• Jiri Slaby's avatar
    TTY: simserial, remove static initialization · fd2d7a6e
    Jiri Slaby authored
    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: default avatarJiri Slaby <jslaby@suse.cz>
    Cc: Tony Luck <tony.luck@intel.com>
    Cc: Fenghua Yu <fenghua.yu@intel.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    fd2d7a6e
simserial.c 19.6 KB