lkml.org 
[lkml]   [2018]   [Feb]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.4 148/193] ncpfs: fix unused variable warning
    Date
    4.4-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Miklos Szeredi <mszeredi@redhat.com>

    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 <mszeredi@redhat.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    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; i<this->len ; i++)
    hash = partial_name_hash(ncp_tolower(t, this->name[i]),

    \
     
     \ /
      Last update: 2018-02-23 21:20    [W:4.076 / U:0.400 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site