summaryrefslogtreecommitdiff
path: root/drivers/scsi/scsi.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2006-11-09 12:09:35 +0300
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-11-16 02:59:37 +0300
commit504fb37a0801d843bc1907c1a1f9c719c3509863 (patch)
treedd4e4a4eb5ab8a391e9b0bc2f05f258ec10ae2a3 /drivers/scsi/scsi.c
parent85e04e371b5a321b5df2bc3f8e0099a64fb087d7 (diff)
downloadlinux-504fb37a0801d843bc1907c1a1f9c719c3509863.tar.xz
[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.c2
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);
*/
void scsi_device_put(struct scsi_device *sdev)
{
+#ifdef CONFIG_MODULE_UNLOAD
struct module *module = sdev->host->hostt->module;
-#ifdef CONFIG_MODULE_UNLOAD
/* The module refcount will be zero if scsi_device_get()
* was called from a module removal routine */
if (module && module_refcount(module) != 0)