net: of_mdio: don't store the length of a property if we don't need to
authorDaniel Mack <zonque@gmail.com>
Sat, 24 May 2014 07:34:27 +0000 (09:34 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 May 2014 22:23:29 +0000 (15:23 -0700)
commit24f28dde5bed3b6322003dca903ebf7732efa550
tree00ef5d250678eca0ae539dca4a10d2d6de5334d9
parent86f6cf41272de9d6ffa05ab46028b15d160a6f3e
net: of_mdio: don't store the length of a property if we don't need to

of_get_property() can be called with NULL as 2nd argument if the caller
is not interested in the length of a property. Use that here so we can
get rid of a variable.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/of/of_mdio.c