From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-cys01nam02on0137.outbound.protection.outlook.com ([104.47.37.137]:54886 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1032588AbeCAPjT (ORCPT ); Thu, 1 Mar 2018 10:39:19 -0500 From: Sasha Levin To: "stable@vger.kernel.org" , "stable-commits@vger.kernel.org" CC: Miklos Szeredi , Sasha Levin Subject: [added to the 4.1 stable tree] ncpfs: fix unused variable warning Date: Thu, 1 Mar 2018 15:27:41 +0000 Message-ID: <20180301152116.1486-487-alexander.levin@microsoft.com> References: <20180301152116.1486-1-alexander.levin@microsoft.com> In-Reply-To: <20180301152116.1486-1-alexander.levin@microsoft.com> Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org List-ID: From: Miklos Szeredi This patch has been added to the 4.1 stable tree. If you have any objections, please let us know. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D [ Upstream commit 9a232de4999666b2e8ea6775b2b0e3e4feb09b7a ] 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 =3D dentry->d_sb; Signed-off-by: Miklos Szeredi Signed-off-by: Sasha Levin --- fs/ncpfs/dir.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/ncpfs/dir.c b/fs/ncpfs/dir.c index 0c2632386f35..d2c969d1d9d2 100644 --- a/fs/ncpfs/dir.c +++ b/fs/ncpfs/dir.c @@ -133,12 +133,11 @@ ncp_hash_dentry(const struct dentry *dentry, struct q= str *this) return 0; =20 if (!ncp_case_sensitive(inode)) { - struct super_block *sb =3D dentry->d_sb; struct nls_table *t; unsigned long hash; int i; =20 - t =3D NCP_IO_TABLE(sb); + t =3D NCP_IO_TABLE(dentry->d_sb); hash =3D init_name_hash(); for (i=3D0; ilen ; i++) hash =3D partial_name_hash(ncp_tolower(t, this->name[i]), --=20 2.14.1