USB: cypress_m8: unify confusing new baudrate check
authorMike Frysinger <vapier@gentoo.org>
Fri, 18 Dec 2009 21:33:02 +0000 (16:33 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 2 Mar 2010 22:53:24 +0000 (14:53 -0800)
commit2805eb13c3b5be7bd6ec7380502bc054b570afd5
tree2c34f1d6ef6a5bcd4e38d851376318fce0410f54
parent64319dd74f3d45f13b6d0aafa91104eb105f1829
USB: cypress_m8: unify confusing new baudrate check

The current code has a confusing duplicate new_baudrate init when setting
the serial parameters.  So just combine the if statement checks to avoid
this.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/cypress_m8.c