]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit426c8d8e43c8a95362763545bfc4673be0aea670
tree1cd442700d96ebd79a413460aadc2b442b634451
parent8eb5b03db767e41ac905734fd1a855fbcca9fe04
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