fscache, cachefiles: remove redundant variable 'cache'
authorColin Ian King <colin.king@canonical.com>
Tue, 17 Jul 2018 08:53:42 +0000 (09:53 +0100)
committerDavid Howells <dhowells@redhat.com>
Fri, 30 Nov 2018 16:00:58 +0000 (16:00 +0000)
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 <colin.king@canonical.com>
Signed-off-by: David Howells <dhowells@redhat.com>
fs/cachefiles/rdwr.c

index db233588a69afd3d42e0cdc924167bcc12428e00..8a577409d030b79757d546388bdbe88bbe124391 100644 (file)
@@ -968,11 +968,8 @@ void cachefiles_uncache_page(struct fscache_object *_object, struct page *page)
        __releases(&object->fscache.cookie->lock)
 {
        struct cachefiles_object *object;
-       struct cachefiles_cache *cache;
 
        object = container_of(_object, struct cachefiles_object, fscache);
-       cache = container_of(object->fscache.cache,
-                            struct cachefiles_cache, cache);
 
        _enter("%p,{%lu}", object, page->index);