power: reset: ltc2952: cleanup control flow in poweroff_handler
authorFrans Klaver <frans.klaver@xsens.com>
Wed, 14 Jan 2015 08:15:41 +0000 (09:15 +0100)
committerSebastian Reichel <sre@kernel.org>
Tue, 20 Jan 2015 12:58:30 +0000 (13:58 +0100)
commit5c3faad29b266da015e3726cff6556df5c3cd9f5
treef1c8a009fd4077eec507174728bb8336b67aae9d
parent0428c40d4c448f5dc63b0f76de14fa0affa7aa2f
power: reset: ltc2952: cleanup control flow in poweroff_handler

ltc2952_poweroff_handler uses gotos to return from the function. Since
we don't do cleanups exiting this function, just return IRQ_HANDLED on
the spot and be done with it.

While at it, remove the variable 'ret'. It was never used very much.

Signed-off-by: Frans Klaver <frans.klaver@xsens.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/reset/ltc2952-poweroff.c