]> git.karo-electronics.de Git - karo-tx-linux.git/commit
TTY: isdn, make some functions readable
authorJiri Slaby <jslaby@suse.cz>
Mon, 2 Apr 2012 11:53:52 +0000 (13:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Apr 2012 18:16:54 +0000 (11:16 -0700)
commit37630f406338de4a5f72a42c0b6a034657dce383
tree11212fa0f1b2481e60af871b0bb77e483adf5963
parentce93d33cf45db9893cfc725a2b470da15bfe4435
TTY: isdn, make some functions readable

Huh, this was a mess.

* Remove the 5 indent levels by just returning from isdn_tty_try_read
  when the conditions there are not satisfied.
* Use 'continue' in loop in isdn_tty_readmodem to save 2 levels.
* Chain 'if's in isdn_tty_modem_escape.
* Use 'continue' in loop in isdn_tty_carrier_timeout to save 1 level.

Better to look at this patch with -w -b.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Karsten Keil <isdn@linux-pingi.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/isdn/i4l/isdn_tty.c