git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81011f5
)
smbd: Simplify smbd_smb2_setinfo_send()
author
Volker Lendecke
<vl@samba.org>
Wed, 3 Jul 2019 11:44:59 +0000
(13:44 +0200)
committer
Ralph Boehme
<slow@samba.org>
Mon, 8 Jul 2019 16:22:37 +0000
(16:22 +0000)
Avoid an "else" branch
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/smb2_setinfo.c
patch
|
blob
|
history
diff --git
a/source3/smbd/smb2_setinfo.c
b/source3/smbd/smb2_setinfo.c
index 845c51d29305f0743b5eb13fea4e5f53b14df547..82abd9c9d2e5e33023218895d5e595b074e7c0fc 100644
(file)
--- a/
source3/smbd/smb2_setinfo.c
+++ b/
source3/smbd/smb2_setinfo.c
@@
-443,11
+443,9
@@
static struct tevent_req *smbd_smb2_setinfo_send(TALLOC_CTX *mem_ctx,
tevent_req_done(req);
return tevent_req_post(req, ev);
- } else {
- tevent_req_nterror(req,
- NT_STATUS_OBJECT_PATH_INVALID);
- return tevent_req_post(req, ev);
}
+ tevent_req_nterror(req, NT_STATUS_OBJECT_PATH_INVALID);
+ return tevent_req_post(req, ev);
} else {
/*
* Original code - this is an open file.