qca: Fix KW variable initialization issue

Change-Id: I90363e8da0f1f3cf89e0e9635707a9b2fd555770
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
This commit is contained in:
Pavithra Palanisamy 2018-03-06 16:21:01 +05:30 committed by Gerrit - the friendly Code Review server
parent f46ee781bf
commit 79fd2cc72c
2 changed files with 2 additions and 2 deletions

View file

@ -907,7 +907,7 @@ static int ipq807x_eth_init(struct eth_device *eth_dev, bd_t *this)
char *lstatus[] = {"up", "Down"};
char *dp[] = {"Half", "Full"};
int linkup=0;
int mac_speed, speed_clock1, speed_clock2;
int mac_speed = 0, speed_clock1 = 0, speed_clock2 = 0;
int phy_addr, port_8033 = -1, node, aquantia_port = -1;
node = fdt_path_offset(gd->fdt_blob, "/ess-switch");

View file

@ -187,7 +187,7 @@ int ipq_sw_mdio_init(const char *name)
static int do_ipq_mdio(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
{
char op[2];
unsigned int addr, reg;
unsigned int addr = 0, reg = 0;
unsigned short data = 0;
if (argc < 2)