Mailing List Archive

[xen staging] xen/vPCI: Remove shadowed variable
commit e5b93b70d5f1921867bd59b35562b28766c65f69
Author: Andrew Cooper <andrew.cooper3@citrix.com>
AuthorDate: Wed Apr 10 20:28:23 2024 +0100
Commit: Andrew Cooper <andrew.cooper3@citrix.com>
CommitDate: Thu Apr 11 13:23:08 2024 +0100

xen/vPCI: Remove shadowed variable

Resolves a MISRA R5.3 violation.

Fixes: 622bdd962822 ("vpci/header: handle p2m range sets per BAR")
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Luca Fancellu <luca.fancellu@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
---
xen/drivers/vpci/vpci.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/xen/drivers/vpci/vpci.c b/xen/drivers/vpci/vpci.c
index 260b72875e..97e115dc57 100644
--- a/xen/drivers/vpci/vpci.c
+++ b/xen/drivers/vpci/vpci.c
@@ -62,8 +62,6 @@ void vpci_deassign_device(struct pci_dev *pdev)
spin_unlock(&pdev->vpci->lock);
if ( pdev->vpci->msix )
{
- unsigned int i;
-
list_del(&pdev->vpci->msix->next);
for ( i = 0; i < ARRAY_SIZE(pdev->vpci->msix->table); i++ )
if ( pdev->vpci->msix->table[i] )
--
generated by git-patchbot for /home/xen/git/xen.git#staging