All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 -next] scsi: dpt_i2o: remove set but not used variable 'pHba'
@ 2018-11-24 10:47 YueHaibing
  0 siblings, 0 replies; only message in thread
From: YueHaibing @ 2018-11-24 10:47 UTC (permalink / raw)
  To: kernel-janitors

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/scsi/dpt_i2o.c: In function 'adpt_slave_configure':
drivers/scsi/dpt_i2o.c:414:12: warning:
 variable 'pHba' set but not used [-Wunused-but-set-variable]

It never used since git history start.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
v2:fix patch title
---
 drivers/scsi/dpt_i2o.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/scsi/dpt_i2o.c b/drivers/scsi/dpt_i2o.c
index d5a474d..be6f3db 100644
--- a/drivers/scsi/dpt_i2o.c
+++ b/drivers/scsi/dpt_i2o.c
@@ -411,9 +411,6 @@ static void adpt_inquiry(adpt_hba* pHba)
 static int adpt_slave_configure(struct scsi_device * device)
 {
 	struct Scsi_Host *host = device->host;
-	adpt_hba* pHba;
-
-	pHba = (adpt_hba *) host->hostdata[0];
 
 	if (host->can_queue && device->tagged_supported) {
 		scsi_change_queue_depth(device,

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-11-24 10:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-24 10:47 [PATCH v2 -next] scsi: dpt_i2o: remove set but not used variable 'pHba' YueHaibing

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.