Skip to content

Commit 882f4ad

Browse files
leesagaciousmartinkpetersen
authored andcommitted
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>
1 parent f486893 commit 882f4ad

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

drivers/target/loopback/tcm_loop.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,8 @@ static int tcm_loop_show_info(struct seq_file *m, struct Scsi_Host *host)
8383
static int tcm_loop_driver_probe(struct device *);
8484
static void tcm_loop_driver_remove(struct device *);
8585

86-
static int pseudo_lld_bus_match(struct device *dev,
87-
struct device_driver *dev_driver)
88-
{
89-
return 1;
90-
}
91-
9286
static struct bus_type tcm_loop_lld_bus = {
9387
.name = "tcm_loop_bus",
94-
.match = pseudo_lld_bus_match,
9588
.probe = tcm_loop_driver_probe,
9689
.remove = tcm_loop_driver_remove,
9790
};

0 commit comments

Comments
 (0)