]> git.baikalelectronics.ru Git - kernel.git/commit
stmmac: drop unnecessary dt checks in stmmac_probe_config_dt
authorJoachim Eastwood <manabian@gmail.com>
Wed, 20 May 2015 18:03:09 +0000 (20:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 May 2015 22:57:26 +0000 (18:57 -0400)
commitd7abfba2e62ff9fe77850ba0cd0762f366cadd9e
treeebf5fc9695a9d8f40af29908802601e8ab2988e4
parentff403cc79b48d56b4d8ca6c1ad0158fab04eb3d6
stmmac: drop unnecessary dt checks in stmmac_probe_config_dt

Since the caller already check the presence of a of_node there
is no need to repeat the check in stmmac_probe_config_dt.

There is also no point in checking the return value of the
of_match_device function since if there wasn't match in the
first place we would never be in this function.

Signed-off-by: Joachim Eastwood <manabian@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c