stmmac: dwmac-sti: remove clk NULL checks
authorJoachim Eastwood <manabian@gmail.com>
Fri, 4 Nov 2016 17:54:06 +0000 (18:54 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Nov 2016 03:00:15 +0000 (22:00 -0500)
commitb211aa655d264bd2a1f8b05eb75aeda508bd0ade
treec4658ebc85c0fab55bc0404e79f309aaae7210f1
parenta4c48ad7370ba57ad899c2a4abd223ba7c6d9c32
stmmac: dwmac-sti: remove clk NULL checks

Since sti_dwmac_parse_data() sets dwmac->clk to NULL if not clock was
provided in DT and NULL is a valid clock there is no need to check for
NULL before using this clock.

Signed-off-by: Joachim Eastwood <manabian@gmail.com>
Acked-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Tested-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-sti.c