diff options
author | Arnd Bergmann <arnd@arndb.de> | 2015-05-12 23:31:29 +0200 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2015-05-29 11:04:03 -0400 |
commit | 6ac75368e1a658903cf57b2bbf66e60d34f55558 (patch) | |
tree | df335e8a28f6087d06c104d279e1a27aa5d98df0 /net/irda | |
parent | 0c9d65e76a19ad7c3d7e64fd30bc66b8b6d000ee (diff) | |
download | linux-stable-6ac75368e1a658903cf57b2bbf66e60d34f55558.tar.gz linux-stable-6ac75368e1a658903cf57b2bbf66e60d34f55558.tar.bz2 linux-stable-6ac75368e1a658903cf57b2bbf66e60d34f55558.zip |
nfsd: work around a gcc-5.1 warning
gcc-5.0 warns about a potential uninitialized variable use in nfsd:
fs/nfsd/nfs4state.c: In function 'nfsd4_process_open2':
fs/nfsd/nfs4state.c:3781:3: warning: 'old_deny_bmap' may be used uninitialized in this function [-Wmaybe-uninitialized]
reset_union_bmap_deny(old_deny_bmap, stp);
^
fs/nfsd/nfs4state.c:3760:16: note: 'old_deny_bmap' was declared here
unsigned char old_deny_bmap;
^
This is a false positive, the code path that is warned about cannot
actually be reached.
This adds an initialization for the variable to make the warning go
away.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/irda')
0 files changed, 0 insertions, 0 deletions