mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-20 19:23:40 +00:00
usb: cdns3: cdnsp-pci: remove redundant pci_disable_device() call
commite9c206324eupstream. 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 commit99ca0b57e4("thermal: intel: int340x: processor: Fix warning during module unload"). Fixes:3d82904559("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>
This commit is contained in:
parent
8a4dd74fe4
commit
70322caf9f
1 changed files with 1 additions and 4 deletions
Loading…
Add table
Add a link
Reference in a new issue