Skip to content

Commit 1f92564

Browse files
Colin Ian Kinggregkh
authored andcommitted
fscache, cachefiles: remove redundant variable 'cache'
[ Upstream commit 31ffa56 ] Variable 'cache' is being assigned but is never used hence it is redundant and can be removed. Cleans up clang warning: warning: variable 'cache' set but not used [-Wunused-but-set-variable] Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: David Howells <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent d8bf97a commit 1f92564

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

fs/cachefiles/rdwr.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -968,11 +968,8 @@ void cachefiles_uncache_page(struct fscache_object *_object, struct page *page)
968968
__releases(&object->fscache.cookie->lock)
969969
{
970970
struct cachefiles_object *object;
971-
struct cachefiles_cache *cache;
972971

973972
object = container_of(_object, struct cachefiles_object, fscache);
974-
cache = container_of(object->fscache.cache,
975-
struct cachefiles_cache, cache);
976973

977974
_enter("%p,{%lu}", object, page->index);
978975

0 commit comments

Comments
 (0)