aboutsummaryrefslogtreecommitdiff
path: root/fs/nfs/nfs4proc.c
diff options
context:
space:
mode:
authorGravatar Anna Schumaker <Anna.Schumaker@Netapp.com> 2017-04-07 14:15:23 -0400
committerGravatar Trond Myklebust <trond.myklebust@primarydata.com> 2017-04-20 13:39:35 -0400
commitf6148713b24107c478ce532a4be8e5c58437c80e (patch)
treec5e316b55cc2a5420b402ab25aa2679153572c0d /fs/nfs/nfs4proc.c
parentNFS: Clean up _nfs4_proc_exchange_id() (diff)
downloadlinux-f6148713b24107c478ce532a4be8e5c58437c80e.tar.gz
linux-f6148713b24107c478ce532a4be8e5c58437c80e.tar.bz2
linux-f6148713b24107c478ce532a4be8e5c58437c80e.zip
NFS: Clean up nfs4_proc_get_lease_time()
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r--fs/nfs/nfs4proc.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index a3808826b655..dda19a35ad9e 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -7751,17 +7751,13 @@ int nfs4_proc_get_lease_time(struct nfs_client *clp, struct nfs_fsinfo *fsinfo)
nfs4_init_sequence(&args.la_seq_args, &res.lr_seq_res, 0);
nfs4_set_sequence_privileged(&args.la_seq_args);
- dprintk("--> %s\n", __func__);
task = rpc_run_task(&task_setup);
if (IS_ERR(task))
- status = PTR_ERR(task);
- else {
- status = task->tk_status;
- rpc_put_task(task);
- }
- dprintk("<-- %s return %d\n", __func__, status);
+ return PTR_ERR(task);
+ status = task->tk_status;
+ rpc_put_task(task);
return status;
}