mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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]>
This commit is contained in:
parent
cd054ee165
commit
a1cab5bb87
1 changed files with 0 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue