Commit 504fb37a authored by Ingo Molnar's avatar Ingo Molnar Committed by James Bottomley

[SCSI] fix module unload induced compile warning

Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 85e04e37
...@@ -871,9 +871,9 @@ EXPORT_SYMBOL(scsi_device_get); ...@@ -871,9 +871,9 @@ EXPORT_SYMBOL(scsi_device_get);
*/ */
void scsi_device_put(struct scsi_device *sdev) void scsi_device_put(struct scsi_device *sdev)
{ {
#ifdef CONFIG_MODULE_UNLOAD
struct module *module = sdev->host->hostt->module; struct module *module = sdev->host->hostt->module;
#ifdef CONFIG_MODULE_UNLOAD
/* The module refcount will be zero if scsi_device_get() /* The module refcount will be zero if scsi_device_get()
* was called from a module removal routine */ * was called from a module removal routine */
if (module && module_refcount(module) != 0) if (module && module_refcount(module) != 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment