From: Wolfgang Denk Date: Sat, 10 Dec 2011 23:08:58 +0100 Subject: [U-Boot] [PATCH 03/13] fs/yaffs2/yaffs_guts.c: Fix GCC 4.6 compile warning (and bug) In-Reply-To: <1323429272-26801-4-git-send-email-wd@denx.de> References: <1323429272-26801-1-git-send-email-wd@denx.de> <1323429272-26801-4-git-send-email-wd@denx.de> Message-ID: <20111210220858.5E8FC823C9@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 Wolfgang Denk, In message <1323429272-26801-4-git-send-email-wd@denx.de> you wrote: > Fix: > yaffs_guts.c: In function 'yaffs_GarbageCollectBlock': > yaffs_guts.c:2761:6: warning: variable 'retVal' set but not used > [-Wunused-but-set-variable] > > Here GCC actually detected a bug. The code was always returning OK > instead of the previously set retrun code. Fix that. > > Signed-off-by: Wolfgang Denk > Cc: William Juul > Cc: Scott Wood > --- > fs/yaffs2/yaffs_guts.c | 2 +- > 1 files changed, 1 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 I distrust all systematisers, and avoid them. The will to a system shows a lack of honesty. - Friedrich Wilhelm Nietzsche _G?tzen-D?mmerung [The Twilight of the Idols]_ ``Maxims and Missiles'' no. 26