diff options
author | Jeff Layton <jlayton@redhat.com> | 2010-07-21 16:40:08 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2010-07-23 08:51:25 -0400 |
commit | 628b368728e23188ac41b3f00411b02be8e697f1 (patch) | |
tree | 84fe4d9af9c9ef7415b79060d8caa10d7b020779 /fs/nfsd/nfssvc.c | |
parent | 0cd14a061e32d4ddaadad24d86d06cc860010591 (diff) |
nfsd: clean up nfsd_create_serv error handling
There doesn't seem to be any need to reset the nfssvc_boot time if the
nfsd startup failed.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfssvc.c')
-rw-r--r-- | fs/nfsd/nfssvc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/nfsd/nfssvc.c b/fs/nfsd/nfssvc.c index d7a4d7b37448..a631ea61f76a 100644 --- a/fs/nfsd/nfssvc.c +++ b/fs/nfsd/nfssvc.c | |||
@@ -292,10 +292,9 @@ int nfsd_create_serv(void) | |||
292 | nfsd_serv = svc_create_pooled(&nfsd_program, nfsd_max_blksize, | 292 | nfsd_serv = svc_create_pooled(&nfsd_program, nfsd_max_blksize, |
293 | nfsd_last_thread, nfsd, THIS_MODULE); | 293 | nfsd_last_thread, nfsd, THIS_MODULE); |
294 | if (nfsd_serv == NULL) | 294 | if (nfsd_serv == NULL) |
295 | err = -ENOMEM; | 295 | return -ENOMEM; |
296 | else | ||
297 | set_max_drc(); | ||
298 | 296 | ||
297 | set_max_drc(); | ||
299 | do_gettimeofday(&nfssvc_boot); /* record boot time */ | 298 | do_gettimeofday(&nfssvc_boot); /* record boot time */ |
300 | return err; | 299 | return err; |
301 | } | 300 | } |