From: John Daiker <daikerj@onid.orst.edu>
To: James.Bottomley@SteelEye.com
Cc: linux-kernel@vger.kernel.org, trivial@kernel.org
Subject: [PATCH][Trivial] scsi: Fix 'unused variable' warning in scsi.c
Date: Tue, 05 Dec 2006 16:26:06 -0800 [thread overview]
Message-ID: <45760E1E.9090007@onid.orst.edu> (raw)
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)
reply other threads:[~2006-12-06 0:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45760E1E.9090007@onid.orst.edu \
--to=daikerj@onid.orst.edu \
--cc=James.Bottomley@SteelEye.com \
--cc=linux-kernel@vger.kernel.org \
--cc=trivial@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox