]> Git Repo - J-linux.git/commitdiff
PCI: xgene: Remove unused assignment to variable msi_val
authorKrzysztof Wilczyński <[email protected]>
Tue, 22 Sep 2020 03:02:57 +0000 (03:02 +0000)
committerLorenzo Pieralisi <[email protected]>
Fri, 2 Oct 2020 11:58:53 +0000 (12:58 +0100)
The value assigned to msi_val after the inner loop finishes its run is
never used for anything, and it is also immediately overridden in the
line that follows with the return value from the xgene_msi_int_read()
function.

Since the value of msi_val following the inner loop completion is never
used in any meaningful way the assignment can be removed.

Addresses-Coverity-ID: 1437183 ("Unused value")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Krzysztof Wilczyński <[email protected]>
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Reviewed-by: Rob Herring <[email protected]>
Acked-by: Bjorn Helgaas <[email protected]>
drivers/pci/controller/pci-xgene-msi.c

index 02271c6d17a1126c358dccc169b65f6cfcb83828..2470782cb01afae6690d6101718672778f500d9a 100644 (file)
@@ -493,8 +493,8 @@ static int xgene_msi_probe(struct platform_device *pdev)
         */
        for (irq_index = 0; irq_index < NR_HW_IRQS; irq_index++) {
                for (msi_idx = 0; msi_idx < IDX_PER_GROUP; msi_idx++)
-                       msi_val = xgene_msi_ir_read(xgene_msi, irq_index,
-                                                   msi_idx);
+                       xgene_msi_ir_read(xgene_msi, irq_index, msi_idx);
+
                /* Read MSIINTn to confirm */
                msi_val = xgene_msi_int_read(xgene_msi, irq_index);
                if (msi_val) {
This page took 0.048194 seconds and 4 git commands to generate.