mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
NFS4: remove a redundant lock range check
flock64_to_posix_lock() is already doing this check Signed-off-by: Benjamin Coddington <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Trond Myklebust <[email protected]>
This commit is contained in:
parent
675e508f53
commit
12a16d15b6
1 changed files with 0 additions and 3 deletions
|
|
@ -6447,9 +6447,6 @@ nfs4_proc_lock(struct file *filp, int cmd, struct file_lock *request)
|
|||
ctx = nfs_file_open_context(filp);
|
||||
state = ctx->state;
|
||||
|
||||
if (request->fl_start < 0 || request->fl_end < 0)
|
||||
return -EINVAL;
|
||||
|
||||
if (IS_GETLK(cmd)) {
|
||||
if (state != NULL)
|
||||
return nfs4_proc_getlk(state, F_GETLK, request);
|
||||
|
|
|
|||
Loading…
Reference in a new issue