]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:17:35 +0000 (21:17 -0600)
commitafa541c3825a7d71d4ae8f50e5bd1bc10c7b321f
treec5896b4bbb93ab6e88c463fb737e45bc925dfad6
parentb80f0474177c7a947c3bf0f67661357196f51525
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