mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
nfsd4: remove redundant check from nfsd4_open
Note that we already checked for this invalid case at the top of this function. Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
This commit is contained in:
parent
05f4f678b0
commit
5cb031b0af
@ -206,10 +206,6 @@ nfsd4_open(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
|
|||||||
|
|
||||||
switch (open->op_claim_type) {
|
switch (open->op_claim_type) {
|
||||||
case NFS4_OPEN_CLAIM_DELEGATE_CUR:
|
case NFS4_OPEN_CLAIM_DELEGATE_CUR:
|
||||||
status = nfserr_inval;
|
|
||||||
if (open->op_create)
|
|
||||||
goto out;
|
|
||||||
/* fall through */
|
|
||||||
case NFS4_OPEN_CLAIM_NULL:
|
case NFS4_OPEN_CLAIM_NULL:
|
||||||
/*
|
/*
|
||||||
* (1) set CURRENT_FH to the file being opened,
|
* (1) set CURRENT_FH to the file being opened,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user