switch: qcom: initialize parb_phase to 0

If none of the "if" conditions are met, an uninitialized
parb_phase will be used. Initialize parb_phase so that it can
be handled properly.

Change-Id: I682ece7330cd257566ea740c4498bc786ae95588
Signed-off-by: Tony Truong <truong@codeaurora.org>
This commit is contained in:
Tony Truong 2021-02-18 19:39:05 -08:00
parent 98ed180626
commit ec6e4416b1

View File

@ -42,7 +42,7 @@ static int config_port_arbitration(struct device *dev, int parb_select,
struct pci_dev *pcidev = to_pci_dev(dev);
int i, pos, size;
int timeout = 100;
u32 parb_offset, parb_phase, parb_size;
u32 parb_offset, parb_phase = 0, parb_size;
u32 val;
u16 status;