summaryrefslogtreecommitdiff
path: root/fs/cachefiles/rdwr.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-07-17 11:53:42 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-12-17 11:38:34 +0300
commitf23fc42a3d4c416411b155f6d678a9a07db418b9 (patch)
tree2d3b4b5a277c6e01b8c31971e4565e6b546254d2 /fs/cachefiles/rdwr.c
parent7a821a9a2f86796157ce3a04fe8135cc82b8bfcc (diff)
downloadlinux-f23fc42a3d4c416411b155f6d678a9a07db418b9.tar.xz
fscache, cachefiles: remove redundant variable 'cache'
[ Upstream commit 31ffa563833576bd49a8bf53120568312755e6e2 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/cachefiles/rdwr.c')
-rw-r--r--fs/cachefiles/rdwr.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/cachefiles/rdwr.c b/fs/cachefiles/rdwr.c
index 8d43306c038b..799b59d96fe2 100644
--- a/fs/cachefiles/rdwr.c
+++ b/fs/cachefiles/rdwr.c
@@ -969,11 +969,8 @@ error:
void cachefiles_uncache_page(struct fscache_object *_object, struct page *page)
{
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);