Staging: dgnc: Use goto for spinlock release before return
authorQuentin Lambert <lambert.quentin@gmail.com>
Wed, 11 Mar 2015 14:22:01 +0000 (15:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Mar 2015 10:13:41 +0000 (11:13 +0100)
commitc84a083b995b0bde61640b6576f9c80584915b7a
tree714df51147159edfeb2d064a4292dbd32aaaa12b
parentf6a14cf04fdb17de8a96c59518909216f6892e19
Staging: dgnc: Use goto for spinlock release before return

spin_unlock_irqrestore() is called at several
different places before exiting. This patch uses a goto statement
to factorize these calls.

Coccinelle was used to generate this patch.

Signed-off-by: Quentin Lambert <lambert.quentin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_tty.c