OSDN Git Service

serial: mxs-auart: Remove unneeded goto label
authorFabio Estevam <fabio.estevam@freescale.com>
Thu, 27 Nov 2014 19:08:30 +0000 (17:08 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jan 2015 22:12:27 +0000 (14:12 -0800)
commit11387b0a46a4b19f3aa8c7b85faff31d9bc1e471
treee271b604643fd2271d70dade178ae118b485f431
parent3e29af27c4686d9cb401a63c7eeb6376662b13c1
serial: mxs-auart: Remove unneeded goto label

Instead of jumping to the 'out' label, let's return the error immediately, which
makes the code shorter and cleaner.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/mxs-auart.c