diff options
author | Ingo Molnar <mingo@elte.hu> | 2006-11-09 10:09:35 +0100 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-11-16 00:59:37 +0100 |
commit | 504fb37a0801d843bc1907c1a1f9c719c3509863 (patch) | |
tree | dd4e4a4eb5ab8a391e9b0bc2f05f258ec10ae2a3 /drivers/scsi/scsi.c | |
parent | [SCSI] block: convert jiffies to msecs in scsi_ioctl() (diff) | |
download | linux-504fb37a0801d843bc1907c1a1f9c719c3509863.tar.xz linux-504fb37a0801d843bc1907c1a1f9c719c3509863.zip |
[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); */ 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) |