leds: bcm6328: simplify duplicated unlock in bcm6328_blink_set
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Tue, 15 Dec 2015 20:03:51 +0000 (21:03 +0100)
committerJacek Anaszewski <j.anaszewski@samsung.com>
Mon, 4 Jan 2016 08:57:40 +0000 (09:57 +0100)
commit143b77ce03b44779987109486212838df2f03cae
treef0ef47bbeaece8b0e06a377e73d29f636f0a331e
parent4ba113b6d4a4cec461e373aca44ce6bb2cb02476
leds: bcm6328: simplify duplicated unlock in bcm6328_blink_set

Instead of duplicating the unlock we can store the return value and use a
single unlock before returning that value, which simplifies the code.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
drivers/leds/leds-bcm6328.c