diff options
| author | Miaoqian Lin <linmq006@gmail.com> | 2025-09-03 22:16:13 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-10-15 11:58:10 +0200 |
| commit | acad20578817ccd4552fc659420ea1b0bb907e89 (patch) | |
| tree | fae4842507161f38ce257720b7acdb31bb49645a /certs | |
| parent | 5c25a2a403b306fa3235c37e57f4f5510a262451 (diff) | |
| download | linux-acad20578817ccd4552fc659420ea1b0bb907e89.tar.gz linux-acad20578817ccd4552fc659420ea1b0bb907e89.tar.bz2 linux-acad20578817ccd4552fc659420ea1b0bb907e89.zip | |
usb: cdns3: cdnsp-pci: remove redundant pci_disable_device() call
commit e9c206324eeb213957a567a9d066bdeb355c7491 upstream.
The cdnsp-pci driver uses pcim_enable_device() to enable a PCI device,
which means the device will be automatically disabled on driver detach
through the managed device framework. The manual pci_disable_device()
call in the error path is therefore redundant.
Found via static anlaysis and this is similar to commit 99ca0b57e49f
("thermal: intel: int340x: processor: Fix warning during module unload").
Fixes: 3d82904559f4 ("usb: cdnsp: cdns3 Add main part of Cadence USBSSP DRD Driver")
Cc: stable@vger.kernel.org
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Link: https://lore.kernel.org/r/20250903141613.2535472-1-linmq006@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'certs')
0 files changed, 0 insertions, 0 deletions
