Skip to content

Commit

Permalink
LOCKD: Make nlmsvc_traverse_shares return void
Browse files Browse the repository at this point in the history
The nlmsvc_traverse_shares return value is always zero, hence useless.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
bfields authored and Trond Myklebust committed Mar 21, 2006
1 parent f3ee439 commit 5f12191
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions fs/lockd/svcshare.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ nlmsvc_unshare_file(struct nlm_host *host, struct nlm_file *file,
* Traverse all shares for a given file (and host).
* NLM_ACT_CHECK is handled by nlmsvc_inspect_file.
*/
int
void
nlmsvc_traverse_shares(struct nlm_host *host, struct nlm_file *file, int action)
{
struct nlm_share *share, **shpp;
Expand All @@ -106,6 +106,4 @@ nlmsvc_traverse_shares(struct nlm_host *host, struct nlm_file *file, int action)
}
shpp = &share->s_next;
}

return 0;
}
4 changes: 1 addition & 3 deletions fs/lockd/svcsubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,7 @@ nlm_inspect_file(struct nlm_host *host, struct nlm_file *file, int action)
return 1;
} else {
nlmsvc_traverse_blocks(host, file, action);

if (nlmsvc_traverse_shares(host, file, action))
return 1;
nlmsvc_traverse_shares(host, file, action);
}
return nlm_traverse_locks(host, file, action);
}
Expand Down
2 changes: 1 addition & 1 deletion include/linux/lockd/share.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ u32 nlmsvc_share_file(struct nlm_host *, struct nlm_file *,
struct nlm_args *);
u32 nlmsvc_unshare_file(struct nlm_host *, struct nlm_file *,
struct nlm_args *);
int nlmsvc_traverse_shares(struct nlm_host *, struct nlm_file *, int);
void nlmsvc_traverse_shares(struct nlm_host *, struct nlm_file *, int);

#endif /* LINUX_LOCKD_SHARE_H */

0 comments on commit 5f12191

Please sign in to comment.