diff options
Diffstat (limited to 'drivers/scsi/scsi.c')
-rw-r--r-- | drivers/scsi/scsi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c index c59f31533ab4..780d6dc92b42 100644 --- a/drivers/scsi/scsi.c +++ b/drivers/scsi/scsi.c | |||
@@ -871,9 +871,9 @@ EXPORT_SYMBOL(scsi_device_get); | |||
871 | */ | 871 | */ |
872 | void scsi_device_put(struct scsi_device *sdev) | 872 | void scsi_device_put(struct scsi_device *sdev) |
873 | { | 873 | { |
874 | #ifdef CONFIG_MODULE_UNLOAD | ||
874 | struct module *module = sdev->host->hostt->module; | 875 | struct module *module = sdev->host->hostt->module; |
875 | 876 | ||
876 | #ifdef CONFIG_MODULE_UNLOAD | ||
877 | /* The module refcount will be zero if scsi_device_get() | 877 | /* The module refcount will be zero if scsi_device_get() |
878 | * was called from a module removal routine */ | 878 | * was called from a module removal routine */ |
879 | if (module && module_refcount(module) != 0) | 879 | if (module && module_refcount(module) != 0) |