From af5ed5692f4ddc1903f7897540a666d9c6e5dd74 Mon Sep 17 00:00:00 2001 From: tb Date: Thu, 14 Dec 2023 18:08:18 +0000 Subject: [PATCH] OBJ_create(): remove pointless parentheses --- lib/libcrypto/objects/obj_dat.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/libcrypto/objects/obj_dat.c b/lib/libcrypto/objects/obj_dat.c index 77775062f2b..aa94db4dc83 100644 --- a/lib/libcrypto/objects/obj_dat.c +++ b/lib/libcrypto/objects/obj_dat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: obj_dat.c,v 1.72 2023/12/14 18:06:44 tb Exp $ */ +/* $OpenBSD: obj_dat.c,v 1.73 2023/12/14 18:08:18 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -596,11 +596,11 @@ OBJ_create(const char *oid, const char *sn, const char *ln) i = a2d_ASN1_OBJECT(NULL, 0, oid, -1); if (i <= 0) - return (0); + return 0; if ((buf = malloc(i)) == NULL) { OBJerror(ERR_R_MALLOC_FAILURE); - return (0); + return 0; } i = a2d_ASN1_OBJECT(buf, i, oid, -1); if (i == 0) @@ -613,7 +613,7 @@ OBJ_create(const char *oid, const char *sn, const char *ln) err: ASN1_OBJECT_free(op); free(buf); - return (ok); + return ok; } LCRYPTO_ALIAS(OBJ_create); -- 2.20.1