From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Mon, 25 Jul 2011 22:20:00 +0200 Subject: [U-Boot] [PATCH] net: designware: fix unused warning when CONFIG_DW_AUTONEG is enabled In-Reply-To: <1307027978-13418-1-git-send-email-vapier@gentoo.org> References: <1307027978-13418-1-git-send-email-vapier@gentoo.org> Message-ID: <20110725202000.44975138EED4@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Mike Frysinger, In message <1307027978-13418-1-git-send-email-vapier@gentoo.org> you wrote: > The ctrl variable is only used when autoneg support is disabled, so only > declare it under those conditions to avoid an unused variable warning. > > Signed-off-by: Mike Frysinger > --- > drivers/net/designware.c | 4 +++- > 1 files changed, 3 insertions(+), 1 deletions(-) Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "No proper program contains an indication which as an operator- applied occurrence identifies an operator-defining occurrence which as an indication-applied occurrence identifies an indication-defining occurrence different from the one identified by the given indication as an indication-applied occurrence." - ALGOL 68 Report