Re: [PATCH] net: stmmac: sti: Fix uninitialized pointer dereference if !OF

2014-12-15 Thread David Miller
From: Geert Uytterhoeven Date: Mon, 15 Dec 2014 12:25:51 +0100 > If CONFIG_OF is not set: > > drivers/net/ethernet/stmicro/stmmac/dwmac-sti.c: In function > ‘sti_dwmac_parse_data’: > drivers/net/ethernet/stmicro/stmmac/dwmac-sti.c:318: warning: ‘rs’ is used > uninitialized in this function >

[PATCH] net: stmmac: sti: Fix uninitialized pointer dereference if !OF

2014-12-15 Thread Geert Uytterhoeven
If CONFIG_OF is not set: drivers/net/ethernet/stmicro/stmmac/dwmac-sti.c: In function ‘sti_dwmac_parse_data’: drivers/net/ethernet/stmicro/stmmac/dwmac-sti.c:318: warning: ‘rs’ is used uninitialized in this function of_property_read_string() will return -ENOSYS in this case, and rs will be an u