Skip to content

Commit

Permalink
power_supply: 88pm860x_charger: Do not call free_irq() twice
Browse files Browse the repository at this point in the history
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 <yos@sslab.ics.keio.ac.jp>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
  • Loading branch information
Takeshi Yoshimura authored and Sebastian Reichel committed May 29, 2015
1 parent cd054ee commit a1cab5b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/power/88pm860x_charger.c
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,6 @@ static int pm860x_charger_remove(struct platform_device *pdev)
int i;

power_supply_unregister(info->usb);
free_irq(info->irq[0], info);
for (i = 0; i < info->irq_nums; i++)
free_irq(info->irq[i], info);
return 0;
Expand Down

0 comments on commit a1cab5b

Please sign in to comment.