]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI/portdrv: Don't check for valid device and driver in bus callbacks
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Tue, 2 Dec 2025 15:13:53 +0000 (16:13 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 13 Jan 2026 21:48:59 +0000 (15:48 -0600)
commit9d29a9c06f3e88e47ae43a26b61eebe7372dbee3
tree0d461b75d2751b2df9b9f0a88b70c740de92888e
parent61df4929a74bfd4aed712d09b681378b470b6224
PCI/portdrv: Don't check for valid device and driver in bus callbacks

The driver core ensures that in .probe() and .remove() both dev and
dev->driver are valid. So drop the respective check.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Link: https://patch.msgid.link/2cc2e15e05318b9f0d7b6a2b69b3169d2a6f0bd3.1764688034.git.u.kleine-koenig@baylibre.com
drivers/pci/pcie/portdrv.c