]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
SCSI: refactor device-matching code in scsi_devinfo.c
authorAlan Stern <stern@rowland.harvard.edu>
Mon, 3 Aug 2015 15:57:21 +0000 (11:57 -0400)
committerJames Bottomley <JBottomley@Odin.com>
Tue, 27 Oct 2015 02:08:42 +0000 (11:08 +0900)
commitc42b3654f48bc06189a2d99629c9cf7bb79e8fe3
tree2358efcf0c5477bf9556543f5a262be86d2991f0
parentfd6ddfa4c1ddfb4a149b31845144b4cf3cbef54d
SCSI: refactor device-matching code in scsi_devinfo.c

In drivers/scsi/scsi_devinfo.c, the scsi_dev_info_list_del_keyed() and
scsi_get_device_flags_keyed() routines contain a large amount of
duplicate code for finding vendor/product matches in a
scsi_dev_info_list.  This patch factors out the duplicate code and
puts it in a separate function, scsi_dev_info_list_find().

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Suggested-by: Giulio Bernardi <ugilio@gmail.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/scsi_devinfo.c