From c729d1934ad91ed43a61fa2ea72f3376088ebdc8 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Sat, 20 May 2017 03:29:41 +0000 Subject: [PATCH] scst: minor cleanup Let's keep it simple without unused functionality git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7192 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_main.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/scst/src/scst_main.c b/scst/src/scst_main.c index 1440bc4b1..30ce3954e 100644 --- a/scst/src/scst_main.c +++ b/scst/src/scst_main.c @@ -1270,10 +1270,7 @@ static struct scst_device *__scst_lookup_device(struct scsi_device *scsidp) return NULL; } -static void scst_unregister_device(struct scsi_device *scsidp, - void (*on_free)(struct scst_device *dev, - void *arg), - void *arg) +static void scst_unregister_device(struct scsi_device *scsidp) { struct scst_device *dev; struct scst_acg_dev *acg_dev, *aa; @@ -1331,9 +1328,6 @@ static void scst_unregister_device(struct scsi_device *scsidp, scsidp->host->host_no, scsidp->channel, scsidp->id, (u64)scsidp->lun, scsidp->type); - if (on_free) - on_free(dev, arg); - scst_free_device(dev); out: @@ -2420,7 +2414,7 @@ static void scst_remove(struct device *cdev, struct class_interface *intf) if ((scsidp->host->hostt->name == NULL) || (strcmp(scsidp->host->hostt->name, SCST_LOCAL_NAME) != 0)) - scst_unregister_device(scsidp, NULL, NULL); + scst_unregister_device(scsidp); TRACE_EXIT(); return;