[U-Boot] [U-Boot, 14/17] net: phy: mv88e61xx: Fix uninitialized variable warning

Tom Rini trini at konsulko.com
Fri May 12 17:22:57 UTC 2017


On Mon, May 08, 2017 at 10:14:32PM -0400, Tom Rini wrote:

> 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 at ni.com>
> Cc: Chris Packham <judge.packham at gmail.com>
> Cc: Kevin Smith <kevin.smith at elecsyscorp.com>
> Cc: Prafulla Wadaskar <prafulla at marvell.com>
> Signed-off-by: Tom Rini <trini at konsulko.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170512/b438dced/attachment.sig>


More information about the U-Boot mailing list