Skip to content

Commit a1cab5b

Browse files
takeshi-yoshimurasre
authored andcommitted
power_supply: 88pm860x_charger: Do not call free_irq() twice
My static checker detected double free_irq() in pm860x_charger_remove(). Unloading this module always causes a warning. This patch removes the first redundant free_irq() call. Signed-off-by: Takeshi Yoshimura <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
1 parent cd054ee commit a1cab5b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/power/88pm860x_charger.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,6 @@ static int pm860x_charger_remove(struct platform_device *pdev)
742742
int i;
743743

744744
power_supply_unregister(info->usb);
745-
free_irq(info->irq[0], info);
746745
for (i = 0; i < info->irq_nums; i++)
747746
free_irq(info->irq[i], info);
748747
return 0;

0 commit comments

Comments
 (0)