projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85e04e3
)
[SCSI] fix module unload induced compile warning
author
Ingo Molnar
<mingo@elte.hu>
Thu, 9 Nov 2006 09:09:35 +0000
(10:09 +0100)
committer
James Bottomley
<jejb@mulgrave.il.steeleye.com>
Wed, 15 Nov 2006 23:59:37 +0000
(17:59 -0600)
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/scsi.c
b/drivers/scsi/scsi.c
index c59f31533ab4d2b0d072ead30c61a4a7ea6b199e..780d6dc92b42537ec8282634bf5c3f87e8198547 100644
(file)
--- 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)