* [PATCH][Trivial] scsi: Fix 'unused variable' warning in scsi.c
@ 2006-12-06 0:26 John Daiker
0 siblings, 0 replies; only message in thread
From: John Daiker @ 2006-12-06 0:26 UTC (permalink / raw)
To: James.Bottomley; +Cc: linux-kernel, trivial
From: John Daiker <daikerjohn@gmail.com>
This patch applies cleanly to 2.6.19-git7
Fixes the following warning:
CC drivers/scsi/scsi.o
drivers/scsi/scsi.c: In function ‘scsi_device_put’:
drivers/scsi/scsi.c:874: warning: unused variable ‘module’
Signed-off-by: John Daiker <daikerjohn@gmail.com>
---
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 c59f315..780d6dc 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)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2006-12-06 0:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-06 0:26 [PATCH][Trivial] scsi: Fix 'unused variable' warning in scsi.c John Daiker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox