From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 12 May 2017 13:22:57 -0400 Subject: [U-Boot] [U-Boot, 14/17] net: phy: mv88e61xx: Fix uninitialized variable warning In-Reply-To: <1494296075-29477-14-git-send-email-trini@konsulko.com> References: <1494296075-29477-14-git-send-email-trini@konsulko.com> Message-ID: <20170512172257.GR5701@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Cc: Chris Packham > Cc: Kevin Smith > Cc: Prafulla Wadaskar > Signed-off-by: Tom Rini 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: