Commit 628b368728e23188ac41b3f00411b02be8e697f1
Committed by
J. Bruce Fields
1 parent
0cd14a061e
Exists in
master
and in
4 other branches
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>
Showing 1 changed file with 2 additions and 3 deletions Side-by-side Diff
fs/nfsd/nfssvc.c
... | ... | @@ -292,10 +292,9 @@ |
292 | 292 | nfsd_serv = svc_create_pooled(&nfsd_program, nfsd_max_blksize, |
293 | 293 | nfsd_last_thread, nfsd, THIS_MODULE); |
294 | 294 | if (nfsd_serv == NULL) |
295 | - err = -ENOMEM; | |
296 | - else | |
297 | - set_max_drc(); | |
295 | + return -ENOMEM; | |
298 | 296 | |
297 | + set_max_drc(); | |
299 | 298 | do_gettimeofday(&nfssvc_boot); /* record boot time */ |
300 | 299 | return err; |
301 | 300 | } |