ovpn: Fix the return value in ovpn_bind_from_sockaddr() kernel-doc
Subsystems (3)
PATCH 1/1 ovpn: Fix the return value in ovpn_bind_from_sockaddr() kernel-doc
ovpn_bind_from_sockaddr() returns an ERR_PTR() on failure, never NULL, but its kernel-doc says "NULL otherwise". Say ERR_PTR().
The wrong text came in with commit 80747caef33d ("ovpn: introduce the ovpn_peer object").
Assisted-by LLM
Signed-off-by Karl Mehltretter <[email protected]>
--- drivers/net/ovpn/bind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ovpn/bind.c +1 -1
@@ -18,7 +18,7 @@* ovpn_bind_from_sockaddr - retrieve binding matching sockaddr * @ss: the sockaddr to match * -* Return: the bind matching the passed sockaddr if found, NULL otherwise +* Return: the new bind for the passed sockaddr, an ERR_PTR() on failure */ struct ovpn_bind *ovpn_bind_from_sockaddr (const struct sockaddr_storage *ss) {
Signature · 1 line
2.39.5 (Apple Git-154)
Quoted 8 lines · Karl Mehltretter
ovpn_bind_from_sockaddr()returns anERR_PTR()on failure, never NULL, but its kernel-doc says "NULL otherwise". SayERR_PTR().The wrong text came in with commit
80747caef33d("ovpn: introduce theovpn_peerobject").[...]
Applied, thanks!
[1/1] ovpn: Fix the return value in ovpn_bind_from_sockaddr() kernel-doc
commit: 1087c84dd9554a427f6ca6e350c22688eebd3075
Best regards,
Signature · 1 line
Antonio Quartulli <[email protected]>