commit | b0e92aae157cbf78ede7b7dd03967b49fcb2102e | [log] [tgz] |
---|---|---|
author | Jeff Layton <jlayton@redhat.com> | Tue Jul 15 12:35:20 2008 -0400 |
committer | J. Bruce Fields <bfields@citi.umich.edu> | Tue Jul 15 12:35:20 2008 -0400 |
tree | 8540a64fdf71092789d994f258cb2d07054a42f1 | |
parent | afc1246f917c664b0df98b3c22fa62db74d2ca33 [diff] [blame] |
lockd: nlm_release_host() checks for NULL, caller needn't No need to check for a NULL argument twice. Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
diff --git a/fs/lockd/svcproc.c b/fs/lockd/svcproc.c index 88379cc..fce3d70 100644 --- a/fs/lockd/svcproc.c +++ b/fs/lockd/svcproc.c
@@ -87,8 +87,7 @@ return 0; no_locks: - if (host) - nlm_release_host(host); + nlm_release_host(host); if (error) return error; return nlm_lck_denied_nolocks;