Skip to content

Commit

Permalink
fscache, cachefiles: remove redundant variable 'cache'
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Colin Ian King authored and dhowells committed Nov 30, 2018
1 parent 34e06fe commit 31ffa56
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions fs/cachefiles/rdwr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 31ffa56

Please sign in to comment.