summaryrefslogtreecommitdiff
path: root/drivers/target
diff options
context:
space:
mode:
authorLizhe <sensor1010@163.com>2023-03-19 07:35:18 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2023-03-25 03:44:14 +0300
commit882f4adac9a8411ba9993810132add18896b82c1 (patch)
treedda36168152dc91269b2f8c919b822fe2297401d /drivers/target
parentf486893288f3e9b171b836f43853a6426515d800 (diff)
downloadlinux-882f4adac9a8411ba9993810132add18896b82c1.tar.xz
scsi: target: tcm_loop: 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(). pseudo_lld_bus_match() always returns 1 and is therefore equivalent to not registering a match function. Remove it. Signed-off-by: Lizhe <sensor1010@163.com> Link: https://lore.kernel.org/r/20230319043518.297490-1-sensor1010@163.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/target')
-rw-r--r--drivers/target/loopback/tcm_loop.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/target/loopback/tcm_loop.c b/drivers/target/loopback/tcm_loop.c
index 5272f7dd85d2..4ec99a55ac30 100644
--- a/drivers/target/loopback/tcm_loop.c
+++ b/drivers/target/loopback/tcm_loop.c
@@ -83,15 +83,8 @@ static int tcm_loop_show_info(struct seq_file *m, struct Scsi_Host *host)
static int tcm_loop_driver_probe(struct device *);
static void tcm_loop_driver_remove(struct device *);
-static int pseudo_lld_bus_match(struct device *dev,
- struct device_driver *dev_driver)
-{
- return 1;
-}
-
static struct bus_type tcm_loop_lld_bus = {
.name = "tcm_loop_bus",
- .match = pseudo_lld_bus_match,
.probe = tcm_loop_driver_probe,
.remove = tcm_loop_driver_remove,
};