artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43abdd5
)
Simplify return path of (*pr_ctloutput)() return value in sogetopt().
author
mvs
<mvs@openbsd.org>
Mon, 28 Nov 2022 21:39:28 +0000
(21:39 +0000)
committer
mvs
<mvs@openbsd.org>
Mon, 28 Nov 2022 21:39:28 +0000
(21:39 +0000)
ok guenther@ kn@
sys/kern/uipc_socket.c
patch
|
blob
|
history
diff --git
a/sys/kern/uipc_socket.c
b/sys/kern/uipc_socket.c
index
4787635
..
9261245
100644
(file)
--- a/
sys/kern/uipc_socket.c
+++ b/
sys/kern/uipc_socket.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: uipc_socket.c,v 1.29
0 2022/10/03 16:43:52 bluhm Exp $
*/
+/* $OpenBSD: uipc_socket.c,v 1.29
1 2022/11/28 21:39:28 mvs Exp $
*/
/* $NetBSD: uipc_socket.c,v 1.21 1996/02/04 02:17:52 christos Exp $ */
/*
@@
-1956,9
+1956,7
@@
sogetopt(struct socket *so, int level, int optname, struct mbuf *m)
error = (*so->so_proto->pr_ctloutput)(PRCO_GETOPT, so,
level, optname, m);
- if (error)
- return (error);
- return (0);
+ return (error);
} else
return (ENOPROTOOPT);
} else {