NFS: Fix a compile warning when !(CONFIG_NFS_V3 || CONFIG_NFS_V4)
authorTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 9 Sep 2014 05:21:00 +0000 (22:21 -0700)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 10 Sep 2014 19:47:02 +0000 (12:47 -0700)
commit3a3908c8b09d5ec19d543836d4f38d240ae27fe8
treeb5925398b0cc8c610f5587b51cd68eaefaf10bd5
parent921b81a8cd5a4acc2a009778d13eedd377362c4c
NFS: Fix a compile warning when !(CONFIG_NFS_V3 || CONFIG_NFS_V4)

gcc reports:

linux/fs/nfs/write.c: In function ‘nfs_page_find_head_request_locked.isra.17’:
linux/fs/nfs/write.c:121:64: warning: ‘cinfo.mds’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  list_for_each_entry_safe(freq, t, &cinfo.mds->list, wb_list) {
                                                                  ^
linux/fs/nfs/write.c:110:25: note: ‘cinfo.mds’ was declared here
  struct nfs_commit_info cinfo;

Reported-by: Anna Schumaker <Anna.Schumaker@netapp.com>
Cc: Weston Andros Adamson <dros@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/write.c