Skip to content
Snippets Groups Projects
Commit 5c2db13a authored by Wolfgang Denk's avatar Wolfgang Denk
Browse files

fs/yaffs2/yaffs_guts.c: Fix GCC 4.6 compile warning (and bug)


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: default avatarWolfgang Denk <wd@denx.de>
Cc: William Juul <wiljuul@cisco.com>
Cc: Scott Wood <scottwood@freescale.com>
Acked-by: default avatarWilliam Juul <wiljuul@cisco.com>
parent f4962066
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment