From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5C922C67872 for ; Fri, 14 Dec 2018 12:11:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 186B92147D for ; Fri, 14 Dec 2018 12:11:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544789461; bh=lxunfTEEqyb508Z17U3Ol1mAfpNbhdHH/BoHsqv5Jd0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=c/EYNsenGRKUx4+LhDbwMPfBrddJNq3d1/DdtqxkSRSkXBhwFZbofsCEEa1lZ87Wv /WIwNn+0vbCoc1tENLC1x5Iy4/Lrvx8sQSqQgb5IK5NVXq4XSBXQmnmuNa11eWT3E6 ALkmZGrLdXlk/3Kq5iMBgir9RZ4Wq6uYqNZu/DWk= DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 186B92147D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730443AbeLNMLA (ORCPT ); Fri, 14 Dec 2018 07:11:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:57376 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730635AbeLNMK5 (ORCPT ); Fri, 14 Dec 2018 07:10:57 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1AC5E2147C; Fri, 14 Dec 2018 12:10:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544789456; bh=lxunfTEEqyb508Z17U3Ol1mAfpNbhdHH/BoHsqv5Jd0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Dg+AijlCWnJTsNzhREBwPtG45lEo1cdhitoLkFrE3GDXsxMThK16pYO6nmxuGQ34G haQoqHtlUIiF7oK+RI5agb1hXzawN6ah/3tkzAcRcjFbvQv2cc0N+MyNc0vhK1p5QZ epEoFQcvQxRpCW9vh5cILVxrZeXa0+GBMzC1p2xU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Colin Ian King , David Howells , Sasha Levin Subject: [PATCH 4.14 70/89] fscache, cachefiles: remove redundant variable cache Date: Fri, 14 Dec 2018 13:00:23 +0100 Message-Id: <20181214115733.125842079@linuxfoundation.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181214115729.658859279@linuxfoundation.org> References: <20181214115729.658859279@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ [ 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 Signed-off-by: David Howells Signed-off-by: Sasha Levin --- fs/cachefiles/rdwr.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/fs/cachefiles/rdwr.c b/fs/cachefiles/rdwr.c index 54379cf7db7f..5e9176ec0d3a 100644 --- a/fs/cachefiles/rdwr.c +++ b/fs/cachefiles/rdwr.c @@ -969,11 +969,8 @@ int cachefiles_write_page(struct fscache_storage *op, struct page *page) 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); -- 2.19.1