]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: xgene: Remove unused assignment to variable msi_val
authorKrzysztof Wilczyński <kw@linux.com>
Tue, 22 Sep 2020 03:02:57 +0000 (03:02 +0000)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Fri, 2 Oct 2020 11:58:53 +0000 (12:58 +0100)
commit831adbc74a15d6dd27609383de2438085882e02d
treef50486e5a90b705cdc586b2e9737a13530943730
parente5f0bf958198ed018c9fdf06e8d307ced9af9c95
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.com
Signed-off-by: Krzysztof Wilczyński <kw@linux.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/controller/pci-xgene-msi.c