summaryrefslogtreecommitdiff
path: root/drivers/net/mvpp2.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2017-05-09 02:14:32 (GMT)
committerTom Rini <trini@konsulko.com>2017-05-12 12:37:30 (GMT)
commit4201223de8e6bac403213ad57769dfa723db36e3 (patch)
tree44ef68f8ab3ccc5d9f9887ada10d9a23fd1c4b04 /drivers/net/mvpp2.c
parent63c6f1ce3c243695efc1049591198136348ea9b7 (diff)
downloadu-boot-4201223de8e6bac403213ad57769dfa723db36e3.tar.xz
net: phy: mv88e61xx: Fix uninitialized variable warning
The variable 'res' may be unused uninitialized if our call to mv88e61xx_port_read (register read) fails and we goto the error handling section. In this case we set 'res' to -EIO to indicate why we failed. Cc: Joe Hershberger <joe.hershberger@ni.com> Cc: Chris Packham <judge.packham@gmail.com> Cc: Kevin Smith <kevin.smith@elecsyscorp.com> Cc: Prafulla Wadaskar <prafulla@marvell.com> Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'drivers/net/mvpp2.c')
0 files changed, 0 insertions, 0 deletions