From patchwork Tue Aug 23 14:05:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miklos Szeredi X-Patchwork-Id: 9295703 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A9067608A7 for ; Tue, 23 Aug 2016 14:12:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9BB7728B18 for ; Tue, 23 Aug 2016 14:12:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9086C28BCA; Tue, 23 Aug 2016 14:12:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 110AC28B23 for ; Tue, 23 Aug 2016 14:12:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933092AbcHWOL7 (ORCPT ); Tue, 23 Aug 2016 10:11:59 -0400 Received: from mail-wm0-f46.google.com ([74.125.82.46]:37227 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933084AbcHWOL4 (ORCPT ); Tue, 23 Aug 2016 10:11:56 -0400 Received: by mail-wm0-f46.google.com with SMTP id i5so197931856wmg.0 for ; Tue, 23 Aug 2016 07:11:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=4ZZT5QWH3xcnF1ZuiNEQhmj3SNHQFhGJQwGVzIaC3K0=; b=B0LSTXD2NEFAoc4cD9bf7KmVE81yeS7fAsB+HwbUQclaORcjfY4Bq1jXPLL7g6V6KU ciRO2kByKQl6elER0qeV5Q/s+qfpNgr6TdD7c9nS+1OGuPAvvtH8l2k4DmeFjpVpu0kI voHSsEKNiszTHL+UW+szuQLYjgjEwzW3i4+Iz0kUpeNOIZ3UY1avg+0IaqJDvObc2qrd ZQS5qdYPZI7v9CDvmI3lyk4tA2XOKZ9wCI3119kqMh/9gQzn3QY//huo2mCnxyyEe7Iu fhJdOKqkjbX5+sWVKfn2LrNMZvVNjqT0dMc5HVfYpcYVjhQsbL0eJK5OTqAfe/+Mr/Ba /rfw== X-Gm-Message-State: AEkoous4n4GqZV3q0cGU7aF+AP6X2UcZez7mxG1CFSVjcbrec5fMiCCM6txpuFg9hik4Gktu X-Received: by 10.195.13.18 with SMTP id eu18mr22199174wjd.121.1471961136491; Tue, 23 Aug 2016 07:05:36 -0700 (PDT) Received: from veci.piliscsaba.szeredi.hu (pool-dsl-2c-0018.externet.hu. [217.173.44.24]) by smtp.gmail.com with ESMTPSA id wc3sm3993539wjc.47.2016.08.23.07.05.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Aug 2016 07:05:35 -0700 (PDT) From: Miklos Szeredi To: linux-fsdevel@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Al Viro Subject: [PATCH 1/7] ncpfs: fix unused variable warning Date: Tue, 23 Aug 2016 16:05:26 +0200 Message-Id: <1471961132-1675-2-git-send-email-mszeredi@redhat.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1471961132-1675-1-git-send-email-mszeredi@redhat.com> References: <1471961132-1675-1-git-send-email-mszeredi@redhat.com> Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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 17de5c13dfae..f5b594e2457c 100644 --- a/fs/ncpfs/dir.c +++ b/fs/ncpfs/dir.c @@ -133,12 +133,11 @@ ncp_hash_dentry(const struct dentry *dentry, struct qstr *this) 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(dentry); for (i=0; ilen ; i++) hash = partial_name_hash(ncp_tolower(t, this->name[i]),