diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2024-09-05 16:28:59 +0300 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2024-09-05 16:30:37 +0200 |
commit | 48f703d6a3d7cf345fe9c6209ea3703fe9024628 (patch) | |
tree | ef2da31e3250b387d872579f8fa72ac316508bb8 /lib/crypto/mpi/mpi-div.c | |
parent | 6625767049c2e0960ba9835392a6ef9143170be6 (diff) |
power: supply: max1720x: fix a double free on error in probe()
In this code, if devm_add_action_or_reset() fails, it will call
max1720x_unregister_ancillary() which in turn calls
i2c_unregister_device(). Thus the call to i2c_unregister_device() on the
following line is not required and is a double unregister. Delete it.
Fixes: 47271a935619 ("power: supply: max1720x: add read support for nvmem")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/9c2f76e7-5679-473b-9b9c-e11b492b96ac@stanley.mountain
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'lib/crypto/mpi/mpi-div.c')
0 files changed, 0 insertions, 0 deletions