git: f14ceae49864 - main - ipsec_strerror.c: style, drop redundand return
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 03 Apr 2023 19:50:22 UTC
The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=f14ceae4986403e296c27afa72616993a2ed03e1 commit f14ceae4986403e296c27afa72616993a2ed03e1 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2023-04-03 01:16:03 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2023-04-03 19:48:48 +0000 ipsec_strerror.c: style, drop redundand return Sponsored by: Nvidia networking MFC after: 1 week --- lib/libipsec/ipsec_strerror.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/libipsec/ipsec_strerror.c b/lib/libipsec/ipsec_strerror.c index 4e304bc97018..402faac3f375 100644 --- a/lib/libipsec/ipsec_strerror.c +++ b/lib/libipsec/ipsec_strerror.c @@ -80,13 +80,11 @@ const char *ipsec_strerror(void) if (__ipsec_errcode < 0 || __ipsec_errcode > EIPSEC_MAX) __ipsec_errcode = EIPSEC_MAX; - return ipsec_errlist[__ipsec_errcode]; + return (ipsec_errlist[__ipsec_errcode]); } void __ipsec_set_strerror(const char *str) { __ipsec_errcode = EIPSEC_SYSTEM_ERROR; ipsec_errlist[EIPSEC_SYSTEM_ERROR] = str; - - return; }