diff options
author | Jim Quinlan <james.quinlan@broadcom.com> | 2020-11-02 21:57:12 +0100 |
---|---|---|
committer | Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> | 2020-11-20 18:04:37 +0100 |
commit | ddaff0af653136ee1e0b49116ecf2988c2fc64ca (patch) | |
tree | 6ef69057494bf978156b8a662a78432caeba3edf /drivers/w1/w1_io.c | |
parent | Linux 5.10-rc3 (diff) | |
download | linux-ddaff0af653136ee1e0b49116ecf2988c2fc64ca.tar.xz linux-ddaff0af653136ee1e0b49116ecf2988c2fc64ca.zip |
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>
Diffstat (limited to 'drivers/w1/w1_io.c')
0 files changed, 0 insertions, 0 deletions