From: Jiri Slaby Date: Mon, 5 Mar 2012 13:52:21 +0000 (+0100) Subject: TTY: amiserial, simplify set_serial_info X-Git-Tag: v3.4-rc1~185^2~54 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f9b9684db2d1369fe303de5729cbdc817265bec;p=pandora-kernel.git TTY: amiserial, simplify set_serial_info Do not copy whole serial_state. We only need to know whether the speed is to be changed. Hence store the info in advance and use it later. A simple bool is enough. Also remove reduntant assignments and move the tests directly to the 'if'. Signed-off-by: Jiri Slaby Cc: Geert Uytterhoeven Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed