]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
scsi: target: tcm_loop: Remove redundant driver match function
authorLizhe <sensor1010@163.com>
Sun, 19 Mar 2023 04:35:18 +0000 (12:35 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 25 Mar 2023 00:44:14 +0000 (20:44 -0400)
commit882f4adac9a8411ba9993810132add18896b82c1
treedda36168152dc91269b2f8c919b822fe2297401d
parentf486893288f3e9b171b836f43853a6426515d800
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>
drivers/target/loopback/tcm_loop.c