]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
scsi: core: Remove unused scsi_dev_info_list_del_keyed()
authorDr. David Alan Gilbert <linux@treblig.org>
Sat, 3 May 2025 23:07:42 +0000 (00:07 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 13 May 2025 02:11:55 +0000 (22:11 -0400)
The last use of scsi_dev_info_list_del_keyed() was removed by 2011's
commit 2b132577a05e ("[SCSI] scsi_dh: code cleanup and remove the
references to scsi_dev_info")

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Link: https://lore.kernel.org/r/20250503230743.124978-1-linux@treblig.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_devinfo.c
drivers/scsi/scsi_priv.h

index 90f1393a23f878176b9a2549471ddb46fbe8bdd7..a348df895dca6cf4b1b892e49ab813923f6c72a0 100644 (file)
@@ -485,33 +485,6 @@ static struct scsi_dev_info_list *scsi_dev_info_list_find(const char *vendor,
        return ERR_PTR(-ENOENT);
 }
 
-/**
- * scsi_dev_info_list_del_keyed - remove one dev_info list entry.
- * @vendor:    vendor string
- * @model:     model (product) string
- * @key:       specify list to use
- *
- * Description:
- *     Remove and destroy one dev_info entry for @vendor, @model
- *     in list specified by @key.
- *
- * Returns: 0 OK, -error on failure.
- **/
-int scsi_dev_info_list_del_keyed(char *vendor, char *model,
-                                enum scsi_devinfo_key key)
-{
-       struct scsi_dev_info_list *found;
-
-       found = scsi_dev_info_list_find(vendor, model, key);
-       if (IS_ERR(found))
-               return PTR_ERR(found);
-
-       list_del(&found->dev_info_list);
-       kfree(found);
-       return 0;
-}
-EXPORT_SYMBOL(scsi_dev_info_list_del_keyed);
-
 /**
  * scsi_dev_info_list_add_str - parse dev_list and add to the scsi_dev_info_list.
  * @dev_list:  string of device flags to add
index 9fc397a9ce7a4f91cb568a040929b610a24d4e97..5b2b19f5e8ec8a3214a44e6558d03bc3e8c96a9a 100644 (file)
@@ -79,8 +79,6 @@ extern int scsi_dev_info_list_add_keyed(int compatible, char *vendor,
                                        char *model, char *strflags,
                                        blist_flags_t flags,
                                        enum scsi_devinfo_key key);
-extern int scsi_dev_info_list_del_keyed(char *vendor, char *model,
-                                       enum scsi_devinfo_key key);
 extern int scsi_dev_info_add_list(enum scsi_devinfo_key key, const char *name);
 extern int scsi_dev_info_remove_list(enum scsi_devinfo_key key);