Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a1cab5bb authored by Takeshi Yoshimura's avatar Takeshi Yoshimura Committed by Sebastian Reichel
Browse files

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: default avatarTakeshi Yoshimura <yos@sslab.ics.keio.ac.jp>
Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
parent cd054ee1
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;