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:
parent
98ed180626
commit
ec6e4416b1
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user