PCI: brcmstb: Initialize "tmp" before use
authorJim Quinlan <james.quinlan@broadcom.com>
Mon, 2 Nov 2020 20:57:12 +0000 (15:57 -0500)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Fri, 20 Nov 2020 17:04:37 +0000 (17:04 +0000)
commitddaff0af653136ee1e0b49116ecf2988c2fc64ca
tree6ef69057494bf978156b8a662a78432caeba3edf
parentf8394f232b1eab649ce2df5c5f15b0e528c92091
PCI: brcmstb: Initialize "tmp" before use

The variable 'tmp' is used multiple times in the brcm_pcie_setup()
function.  One such usage did not initialize 'tmp' to the current value
of the target register.  By luck the mistake does not currently affect
behavior;  regardless 'tmp' is now initialized properly.

Suggested-by: Rafał Miłecki <zajec5@gmail.com>
Link: https://lore.kernel.org/r/20201102205712.23332-1-james.quinlan@broadcom.com
Fixes: c0452137034b ("PCI: brcmstb: Add Broadcom STB PCIe host controller driver")
Signed-off-by: Jim Quinlan <james.quinlan@broadcom.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
drivers/pci/controller/pcie-brcmstb.c