From: David Howells Date: Wed, 16 Dec 2009 00:47:46 +0000 (-0800) Subject: FS-Cache: Avoid maybe-used-uninitialised warning on variable X-Git-Tag: v2.6.33-rc1~71^2~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea58ceb543b45d45b257a86eaf9d60c94e8adcf2;p=pandora-kernel.git FS-Cache: Avoid maybe-used-uninitialised warning on variable Andrew Morton's compiler sees the following warning in FS-Cache: fs/fscache/object-list.c: In function 'fscache_objlist_lookup': fs/fscache/object-list.c:94: warning: 'obj' may be used uninitialized in this function which my compiler doesn't. This is a false positive as obj can only be used in the comparison against minobj if minobj has been set to something other than NULL, but for that to happen, obj has to be first set to something. Deal with this by preclearing obj too. Reported-by: Andrew Morton Signed-off-by: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed