diff options
author | Ingo Molnar <mingo@elte.hu> | 2006-11-09 04:09:35 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-11-15 18:59:37 -0500 |
commit | 504fb37a0801d843bc1907c1a1f9c719c3509863 (patch) | |
tree | dd4e4a4eb5ab8a391e9b0bc2f05f258ec10ae2a3 /drivers/scsi/scsi.c | |
parent | 85e04e371b5a321b5df2bc3f8e0099a64fb087d7 (diff) |
[SCSI] fix module unload induced compile warning
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
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) |