]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit57628e576871a950618b88e74865721bd58f1c1c
tree714df51147159edfeb2d064a4292dbd32aaaa12b
parentcd79e99451d9e2b0516404baaba17c4521939759
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