]> git.baikalelectronics.ru Git - kernel.git/commit
tty: xuartps: Cleanup: Reformat if-else
authorSoren Brinkmann <soren.brinkmann@xilinx.com>
Tue, 12 Jan 2016 01:41:38 +0000 (17:41 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Feb 2016 06:52:23 +0000 (22:52 -0800)
commitc4ba7e667badc498cdad0cc14fac7e4c1b2f5ca3
tree51ccb8121abf1aadd8246cb08b735663ffdf78cc
parent0e7e5a8141a590864f1e780cc9612b7719612976
tty: xuartps: Cleanup: Reformat if-else

Convert an if-else into the more common early return on error, reducing
the indent level of the happy path.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/xilinx_uartps.c