diff options
author | Takeshi Yoshimura <yos@sslab.ics.keio.ac.jp> | 2015-05-29 13:16:43 (GMT) |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2015-05-29 14:06:10 (GMT) |
commit | a1cab5bb872507cb8594eb4010450fed7c48cdf2 (patch) | |
tree | 822ac135cf75cdb381a7398fe60be3fc6a01eaa6 /drivers/power | |
parent | cd054ee16580690830297dbda0abe9c184276d6a (diff) | |
download | linux-a1cab5bb872507cb8594eb4010450fed7c48cdf2.tar.xz |
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 <yos@sslab.ics.keio.ac.jp>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/88pm860x_charger.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/power/88pm860x_charger.c b/drivers/power/88pm860x_charger.c index 0e448c6..297e72d 100644 --- a/drivers/power/88pm860x_charger.c +++ b/drivers/power/88pm860x_charger.c @@ -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; |