kernel-janitors.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] scsi: aic7xxx: remove set but not used variable 'shared_scb_data'
@ 2018-09-04  3:36 YueHaibing
  2018-09-17  6:34 ` Martin K. Petersen
  0 siblings, 1 reply; 2+ messages in thread
From: YueHaibing @ 2018-09-04  3:36 UTC (permalink / raw)
  To: kernel-janitors

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

drivers/scsi/aic7xxx/aic79xx_pci.c: In function 'ahd_pci_config':
drivers/scsi/aic7xxx/aic79xx_pci.c:291:19: warning:
 variable 'shared_scb_data' set but not used [-Wunused-but-set-variable]

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/scsi/aic7xxx/aic79xx_pci.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/scsi/aic7xxx/aic79xx_pci.c b/drivers/scsi/aic7xxx/aic79xx_pci.c
index c68943b..8397ae9 100644
--- a/drivers/scsi/aic7xxx/aic79xx_pci.c
+++ b/drivers/scsi/aic7xxx/aic79xx_pci.c
@@ -288,13 +288,11 @@ static void	ahd_configure_termination(struct ahd_softc *ahd,
 int
 ahd_pci_config(struct ahd_softc *ahd, const struct ahd_pci_identity *entry)
 {
-	struct scb_data *shared_scb_data;
 	u_int		 command;
 	uint32_t	 devconfig;
 	uint16_t	 subvendor; 
 	int		 error;
 
-	shared_scb_data = NULL;
 	ahd->description = entry->name;
 	/*
 	 * Record if this is an HP board.

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH -next] scsi: aic7xxx: remove set but not used variable 'shared_scb_data'
  2018-09-04  3:36 [PATCH -next] scsi: aic7xxx: remove set but not used variable 'shared_scb_data' YueHaibing
@ 2018-09-17  6:34 ` Martin K. Petersen
  0 siblings, 0 replies; 2+ messages in thread
From: Martin K. Petersen @ 2018-09-17  6:34 UTC (permalink / raw)
  To: kernel-janitors


YueHaibing,

> Fixes gcc '-Wunused-but-set-variable' warning:
>
> drivers/scsi/aic7xxx/aic79xx_pci.c: In function 'ahd_pci_config':
> drivers/scsi/aic7xxx/aic79xx_pci.c:291:19: warning:
>  variable 'shared_scb_data' set but not used [-Wunused-but-set-variable]

Applied to 4.20/scsi-queue, thank you!

-- 
Martin K. Petersen	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-09-17  6:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-04  3:36 [PATCH -next] scsi: aic7xxx: remove set but not used variable 'shared_scb_data' YueHaibing
2018-09-17  6:34 ` Martin K. Petersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).