Skip to content

Commit 156fb70

Browse files
iwamatsusre
authored andcommitted
power: reset: as3722-poweroff: Remove unnecessary return in as3722_poweroff_probe
The return is executed on the devm_register_sys_off_handler() line in as3722_poweroff_probe, so the last return line is unnecessary. Remove it. Fixes: 348fde7 ("power: reset: as3722-poweroff: Use devm_register_sys_off_handler(POWER_OFF)") Signed-off-by: Nobuhiro Iwamatsu <[email protected]> Acked-by: Andrew Davis <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sebastian Reichel <[email protected]>
1 parent 3c7c176 commit 156fb70

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/power/reset/as3722-poweroff.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ static int as3722_poweroff_probe(struct platform_device *pdev)
5757
SYS_OFF_PRIO_DEFAULT,
5858
as3722_pm_power_off,
5959
as3722_poweroff);
60-
61-
return 0;
6260
}
6361

6462
static struct platform_driver as3722_poweroff_driver = {

0 commit comments

Comments
 (0)