]> git.sur5r.net Git - u-boot/commit
net: zynq_gem: Initialize val variable in zynq_gem_miiphy_read()
authorMichal Simek <michal.simek@xilinx.com>
Thu, 14 Jun 2018 07:08:44 +0000 (09:08 +0200)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 2 Jul 2018 19:14:19 +0000 (14:14 -0500)
commitd1b226b7d403b29c1064318097d972ce804e96e7
treea1cc54cf6bcd98f7e7d7db1abad4c90ad6684e60
parentac378bb05fa3cac3197085431f577e0dbddd4b4a
net: zynq_gem: Initialize val variable in zynq_gem_miiphy_read()

phyread can timeout and val will contain random value. Initialize it to
zero not to report random value in case of error.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/zynq_gem.c