diff options
author | Rakib Mullick <rakib.mullick@gmail.com> | 2011-11-01 02:23:42 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-11-02 23:50:24 -0400 |
commit | 2b72c9ccd22c4a3299e5a358dcd639fb253730f4 (patch) | |
tree | d7d01bf3cf5b4d7a460c50b7f5432aaa4b32b9db /fs/nfs/write.c | |
parent | 6f276e49fd108362be3fd67154aaaacf872ea026 (diff) |
nfs: Remove unused variable from write.c
When CONFIG_NFS=y and CONFIG_NFS_V3_{,V4}=n we get the following warning.
fs/nfs/write.c: In function ‘nfs_writeback_done’:
fs/nfs/write.c:1246:21: warning: unused variable ‘server’
Remove the variable 'server' to fix the above warning.
Signed-off-by: Rakib Mullick <rakib.mullick@gmail.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/write.c')
-rw-r--r-- | fs/nfs/write.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c index 2219c88d96b2..b016b8a36399 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c | |||
@@ -1243,7 +1243,6 @@ void nfs_writeback_done(struct rpc_task *task, struct nfs_write_data *data) | |||
1243 | { | 1243 | { |
1244 | struct nfs_writeargs *argp = &data->args; | 1244 | struct nfs_writeargs *argp = &data->args; |
1245 | struct nfs_writeres *resp = &data->res; | 1245 | struct nfs_writeres *resp = &data->res; |
1246 | struct nfs_server *server = NFS_SERVER(data->inode); | ||
1247 | int status; | 1246 | int status; |
1248 | 1247 | ||
1249 | dprintk("NFS: %5u nfs_writeback_done (status %d)\n", | 1248 | dprintk("NFS: %5u nfs_writeback_done (status %d)\n", |
@@ -1277,7 +1276,7 @@ void nfs_writeback_done(struct rpc_task *task, struct nfs_write_data *data) | |||
1277 | if (time_before(complain, jiffies)) { | 1276 | if (time_before(complain, jiffies)) { |
1278 | dprintk("NFS: faulty NFS server %s:" | 1277 | dprintk("NFS: faulty NFS server %s:" |
1279 | " (committed = %d) != (stable = %d)\n", | 1278 | " (committed = %d) != (stable = %d)\n", |
1280 | server->nfs_client->cl_hostname, | 1279 | NFS_SERVER(data->inode)->nfs_client->cl_hostname, |
1281 | resp->verf->committed, argp->stable); | 1280 | resp->verf->committed, argp->stable); |
1282 | complain = jiffies + 300 * HZ; | 1281 | complain = jiffies + 300 * HZ; |
1283 | } | 1282 | } |