net: ethernet: renesas: sh_eth: don't open code of_device_get_match_data()
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 1 Mar 2016 16:37:59 +0000 (17:37 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Mar 2016 21:38:23 +0000 (16:38 -0500)
commit42a67c9b0c0853f6a1159bd54ed0ba50df9f9ad8
tree1cd442700d96ebd79a413460aadc2b442b634451
parente866863066a4e6c42117434dd5cd35c9842f5b82
net: ethernet: renesas: sh_eth: 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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c