* [PATCH -next] mvsas: remove set but not used variables 'res_flag'
@ 2018-10-26 6:38 YueHaibing
0 siblings, 0 replies; only message in thread
From: YueHaibing @ 2018-10-26 6:38 UTC (permalink / raw)
To: James E.J. Bottomley, Martin K. Petersen, Kees Cook, John Garry,
Jack Wang, Johannes Thumshirn
Cc: YueHaibing, linux-scsi, linux-kernel, kernel-janitors
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/scsi/mvsas/mv_init.c: In function 'mvs_ioremap':
drivers/scsi/mvsas/mv_init.c:315:36: warning:
variable 'res_flag' set but not used [-Wunused-but-set-variable]
unsigned long res_start, res_len, res_flag, res_flag_ex = 0;
It not used anymore after commit
92b19ff50e8f ("cleanup IORESOURCE_CACHEABLE vs ioremap()")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
drivers/scsi/mvsas/mv_init.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/scsi/mvsas/mv_init.c b/drivers/scsi/mvsas/mv_init.c
index 3ac3437..d7534fb 100644
--- a/drivers/scsi/mvsas/mv_init.c
+++ b/drivers/scsi/mvsas/mv_init.c
@@ -312,7 +312,7 @@ static int mvs_alloc(struct mvs_info *mvi, struct Scsi_Host *shost)
int mvs_ioremap(struct mvs_info *mvi, int bar, int bar_ex)
{
- unsigned long res_start, res_len, res_flag, res_flag_ex = 0;
+ unsigned long res_start, res_len, res_flag_ex = 0;
struct pci_dev *pdev = mvi->pdev;
if (bar_ex != -1) {
/*
@@ -340,7 +340,6 @@ int mvs_ioremap(struct mvs_info *mvi, int bar, int bar_ex)
goto err_out;
}
- res_flag = pci_resource_flags(pdev, bar);
mvi->regs = ioremap(res_start, res_len);
if (!mvi->regs) {
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-10-26 6:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-26 6:38 [PATCH -next] mvsas: remove set but not used variables 'res_flag' YueHaibing
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).