• zhengbin's avatar
    afs: Remove set but not used variables 'before', 'after' · 51590df4
    zhengbin authored
    Fixes gcc '-Wunused-but-set-variable' warning:
    
    fs/afs/dir_edit.c: In function afs_set_contig_bits:
    fs/afs/dir_edit.c:75:20: warning: variable after set but not used [-Wunused-but-set-variable]
    fs/afs/dir_edit.c: In function afs_set_contig_bits:
    fs/afs/dir_edit.c:75:12: warning: variable before set but not used [-Wunused-but-set-variable]
    fs/afs/dir_edit.c: In function afs_clear_contig_bits:
    fs/afs/dir_edit.c:100:20: warning: variable after set but not used [-Wunused-but-set-variable]
    fs/afs/dir_edit.c: In function afs_clear_contig_bits:
    fs/afs/dir_edit.c:100:12: warning: variable before set but not used [-Wunused-but-set-variable]
    
    They are never used since commit 63a4681f.
    
    Fixes: 63a4681f ("afs: Locally edit directory data for mkdir/create/unlink/...")
    Reported-by: default avatarHulk Robot <hulkci@huawei.com>
    Signed-off-by: default avatarzhengbin <zhengbin13@huawei.com>
    Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
    51590df4
dir_edit.c 13 KB