diff options
author | Benny Halevy <[email protected]> | 2008-06-24 20:25:57 +0300 |
---|---|---|
committer | Trond Myklebust <[email protected]> | 2008-07-09 12:09:30 -0400 |
commit | 77e03677ac76d413fbb6d6caaffa1d64877a0c2a (patch) | |
tree | 7e89420de054284c5cb26896c52a3818598c642b /kernel/mutex-debug.c | |
parent | d8e7748ab8322171ebfd78f6155ff35e7d57ac32 (diff) |
nfs: initialize timeout variable in nfs4_proc_setclientid_confirm
gcc (4.3.0) rightfully warns about this:
/usr0/export/dev/bhalevy/git/linux-pnfs-bh-nfs41/fs/nfs/nfs4proc.c: In function �nfs4_proc_setclientid_confirm�:
/usr0/export/dev/bhalevy/git/linux-pnfs-bh-nfs41/fs/nfs/nfs4proc.c:2936: warning: �timeout� may be used uninitialized in this function
nfs4_delay that's passed a pointer to 'timeout' is looking at its value
and sets it up to some value in the range: NFS4_POLL_RETRY_MIN..NFS4_POLL_RETRY_MAX
if (*timeout <= 0)
*timeout = NFS4_POLL_RETRY_MIN;
if (*timeout > NFS4_POLL_RETRY_MAX)
*timeout = NFS4_POLL_RETRY_MAX;
Therefore it will end up set to some sane, though rather indeterministic, value.
Signed-off-by: Benny Halevy <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>
Diffstat (limited to 'kernel/mutex-debug.c')
0 files changed, 0 insertions, 0 deletions