diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2023-08-17 09:26:10 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2023-08-17 09:26:10 +0000 |
commit | 1702f2c61066383e2658417b675aa798d6c38f4f (patch) | |
tree | 775fc5801d20847395aa6f1ffa056d0c92372937 /lib/libcrypto/objects/obj_dat.c | |
parent | de3c7a0724c3fa2f94b101c622734245f1eed617 (diff) |
Remove some unnecessary else branches
Diffstat (limited to 'lib/libcrypto/objects/obj_dat.c')
-rw-r--r-- | lib/libcrypto/objects/obj_dat.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/libcrypto/objects/obj_dat.c b/lib/libcrypto/objects/obj_dat.c index 8ebedafe35e..cd9db11c76e 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.57 2023/08/17 09:24:50 tb Exp $ */ +/* $OpenBSD: obj_dat.c,v 1.58 2023/08/17 09:26:09 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -192,17 +192,15 @@ added_obj_cmp(const ADDED_OBJ *ca, const ADDED_OBJ *cb) case ADDED_SNAME: if (a->sn == NULL) return -1; - else if (b->sn == NULL) + if (b->sn == NULL) return 1; - else - return strcmp(a->sn, b->sn); + return strcmp(a->sn, b->sn); case ADDED_LNAME: if (a->ln == NULL) return -1; - else if (b->ln == NULL) + if (b->ln == NULL) return 1; - else - return strcmp(a->ln, b->ln); + return strcmp(a->ln, b->ln); case ADDED_NID: return a->nid - b->nid; default: |