Received: by 10.223.185.116 with SMTP id b49csp1032534wrg; Fri, 23 Feb 2018 10:40:46 -0800 (PST) X-Google-Smtp-Source: AH8x226+orRhjDqdiVjujh8hCkwvPHtIkdLF9mySLAZtISFcx6TngilbGf5DRkVt9DvvNRBz2rtm X-Received: by 2002:a17:902:6985:: with SMTP id l5-v6mr2655978plk.14.1519411246260; Fri, 23 Feb 2018 10:40:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519411246; cv=none; d=google.com; s=arc-20160816; b=he1iouL6d5PK7L+c8hkJKQ8mrD6NzSQmflo+WaVKFeBByCSA2gB9UZN0NXf9sVWSKW mLYTAnkfINsrsyLoF+U1S3yjXdgeT7WCfCssiVA6zSNY+6o1jtUSGQydt1Jk6x0vpiD7 ith6FKOp5fNa2uS2KIsMRcFhWB6fTmK58voPGB5m5Yh69ymlQN9WxQYFlMd8Uc7ge8JW hw0J3M3ZB/HED8zE3QxNrSJ9dDHakTGdGBKkBaEDHBdROOxCD8Dx1BXp+M6S2xWkujHU LKYozqADfBwTTxDgaxrCQ8Coa3OsR/f9f+AEqERe01xk/RtaATGYJm0L9L9KJlWgEaiQ Oy5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=qLIEksqOBNJ+3s29vTkcd5rfa7+Qv6O9zhiiRoAgF10=; b=Hg4dzpwUMotcWq06xREpOIisYeg2aCZgwLHDmvmhem5J/2n3yVEIl5TmvdQ+nwfc9J 0MntYqjQwtmZtZX7fgIHh8hbYfJeQjj96f/5flyKAZD+9Y6Omqd+MPwi2IzP4CDJeRZx c1ABupRplxuoOp/lnGx95W/yKfYbBlqGaRQ7IkW0qTC/jAeI8RW7KTM1DDKOoKb7NI88 qKcJ0sE0ym15pMDoplvAXP67gS9jf7dqa23t7Olvyjd9NbcILBGJvd6UbP/bNn+q1GHj rjKrYZB14I9WYKV3JMgN8+MEA+5/70tmqcmIFSlw4+E+iwEVVwYYUXscS3Ah+YtRnQXX itig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 69-v6si2126509plc.814.2018.02.23.10.40.32; Fri, 23 Feb 2018 10:40:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754380AbeBWSjo (ORCPT + 99 others); Fri, 23 Feb 2018 13:39:44 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:39780 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932521AbeBWSjl (ORCPT ); Fri, 23 Feb 2018 13:39:41 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 931751175; Fri, 23 Feb 2018 18:39:40 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Miklos Szeredi Subject: [PATCH 4.4 148/193] ncpfs: fix unused variable warning Date: Fri, 23 Feb 2018 19:26:21 +0100 Message-Id: <20180223170349.066404744@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180223170325.997716448@linuxfoundation.org> References: <20180223170325.997716448@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Miklos Szeredi commit 9a232de4999666b2e8ea6775b2b0e3e4feb09b7a upstream. Without CONFIG_NCPFS_NLS the following warning is seen: fs/ncpfs/dir.c: In function 'ncp_hash_dentry': fs/ncpfs/dir.c:136:23: warning: unused variable 'sb' [-Wunused-variable] struct super_block *sb = dentry->d_sb; Signed-off-by: Miklos Szeredi Signed-off-by: Greg Kroah-Hartman --- fs/ncpfs/dir.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/fs/ncpfs/dir.c +++ b/fs/ncpfs/dir.c @@ -133,12 +133,11 @@ ncp_hash_dentry(const struct dentry *den return 0; if (!ncp_case_sensitive(inode)) { - struct super_block *sb = dentry->d_sb; struct nls_table *t; unsigned long hash; int i; - t = NCP_IO_TABLE(sb); + t = NCP_IO_TABLE(dentry->d_sb); hash = init_name_hash(); for (i=0; ilen ; i++) hash = partial_name_hash(ncp_tolower(t, this->name[i]),