summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_debug.c
diff options
context:
space:
mode:
authorLizhe <sensor1010@163.com>2023-03-19 12:27:32 +0800
committerMartin K. Petersen <martin.petersen@oracle.com>2023-03-24 17:43:26 -0400
commitc45b3804292ba5f95b86a8866e2e2cac03fa0155 (patch)
treed076448f528f751d1d07bfcbf9ebb8e339d97bd5 /drivers/scsi/scsi_debug.c
parentae2fb3cb0f00482c0ec0079e4244bdee3e1fc46b (diff)
downloadlinux-stable-c45b3804292ba5f95b86a8866e2e2cac03fa0155.tar.gz
linux-stable-c45b3804292ba5f95b86a8866e2e2cac03fa0155.tar.bz2
linux-stable-c45b3804292ba5f95b86a8866e2e2cac03fa0155.zip
scsi: scsi_debug: Remove redundant driver match function
If there is no driver match function, the driver core assumes that each candidate pair (driver, device) matches, see driver_match_device(). Drop the pseudo_lld bus match function that always returned 1. This results in the same behaviour as when there is no match function. [mkp+jgg: patch description] Signed-off-by: Lizhe <sensor1010@163.com> Link: https://lore.kernel.org/r/20230319042732.278691-1-sensor1010@163.com Reviewed-by: John Garry <john.g.garry@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/scsi_debug.c')
-rw-r--r--drivers/scsi/scsi_debug.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/scsi/scsi_debug.c b/drivers/scsi/scsi_debug.c
index 7ed117e78bd4..4500a5fdb92b 100644
--- a/drivers/scsi/scsi_debug.c
+++ b/drivers/scsi/scsi_debug.c
@@ -7893,15 +7893,8 @@ static void sdebug_driver_remove(struct device *dev)
scsi_host_put(sdbg_host->shost);
}
-static int pseudo_lld_bus_match(struct device *dev,
- struct device_driver *dev_driver)
-{
- return 1;
-}
-
static struct bus_type pseudo_lld_bus = {
.name = "pseudo",
- .match = pseudo_lld_bus_match,
.probe = sdebug_driver_probe,
.remove = sdebug_driver_remove,
.drv_groups = sdebug_drv_groups,