Commit 026b940f authored by Krzysztof Wilczyński's avatar Krzysztof Wilczyński Committed by Lorenzo Pieralisi

PCI: xgene: Remove unused assignment to variable msi_val

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/20200922030257.459898-1-kw@linux.comSigned-off-by: default avatarKrzysztof Wilczyński <kw@linux.com>
Signed-off-by: default avatarLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Acked-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent 9123e3a7
...@@ -493,8 +493,8 @@ static int xgene_msi_probe(struct platform_device *pdev) ...@@ -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 (irq_index = 0; irq_index < NR_HW_IRQS; irq_index++) {
for (msi_idx = 0; msi_idx < IDX_PER_GROUP; msi_idx++) for (msi_idx = 0; msi_idx < IDX_PER_GROUP; msi_idx++)
msi_val = xgene_msi_ir_read(xgene_msi, irq_index, xgene_msi_ir_read(xgene_msi, irq_index, msi_idx);
msi_idx);
/* Read MSIINTn to confirm */ /* Read MSIINTn to confirm */
msi_val = xgene_msi_int_read(xgene_msi, irq_index); msi_val = xgene_msi_int_read(xgene_msi, irq_index);
if (msi_val) { if (msi_val) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment