net: ethernet: renesas: ravb_main: don't open code of_device_get_match_data()
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 1 Mar 2016 16:37:58 +0000 (17:37 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Mar 2016 21:38:23 +0000 (16:38 -0500)
commite866863066a4e6c42117434dd5cd35c9842f5b82
tree1647d171e2ddad62d3928c3fe9451da012acd5f3
parentde89e854bcc71ebaf30d415a0c015d1cb6c68856
net: ethernet: renesas: ravb_main: don't open code of_device_get_match_data()

This change will also make Coverity happy by avoiding a theoretical NULL
pointer dereference; yet another reason is to use the above helper function
to tighten the code and make it more readable.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/ravb_main.c