mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
LOCKD: Make nlmsvc_traverse_shares return void
The nlmsvc_traverse_shares return value is always zero, hence useless. Signed-off-by: J. Bruce Fields <[email protected]> Signed-off-by: Trond Myklebust <[email protected]>
This commit is contained in:
parent
f3ee439f43
commit
5f12191bc0
3 changed files with 3 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
@ -106,6 +106,4 @@ nlmsvc_traverse_shares(struct nlm_host *host, struct nlm_file *file, int action)
|
|||
}
|
||||
shpp = &share->s_next;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue