Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/dist/heimdal/lib/hx509 Remove useless conditional.



details:   https://anonhg.NetBSD.org/src/rev/f4c689442165
branches:  trunk
changeset: 759382:f4c689442165
user:      joerg <joerg%NetBSD.org@localhost>
date:      Tue Dec 07 22:08:27 2010 +0000

description:
Remove useless conditional.

diffstat:

 crypto/dist/heimdal/lib/hx509/ks_p11.c |  8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diffs (25 lines):

diff -r 8fdc309474ff -r f4c689442165 crypto/dist/heimdal/lib/hx509/ks_p11.c
--- a/crypto/dist/heimdal/lib/hx509/ks_p11.c    Tue Dec 07 22:02:52 2010 +0000
+++ b/crypto/dist/heimdal/lib/hx509/ks_p11.c    Tue Dec 07 22:08:27 2010 +0000
@@ -33,7 +33,7 @@
 
 #include "hx_locl.h"
 __RCSID("$Heimdal: ks_p11.c 22071 2007-11-14 20:04:50Z lha $"
-        "$NetBSD: ks_p11.c,v 1.1 2008/03/22 09:42:41 mlelstv Exp $");
+        "$NetBSD: ks_p11.c,v 1.2 2010/12/07 22:08:27 joerg Exp $");
 #ifdef HAVE_DLFCN_H
 #include <dlfcn.h>
 #endif
@@ -944,11 +944,7 @@
        if (p->slot[i].flags & P11_SESSION_IN_USE)
            _hx509_abort("pkcs11 module release while session in use");
        if (p->slot[i].flags & P11_SESSION) {
-           int ret;
-
-           ret = P11FUNC(p, CloseSession, (p->slot[i].session));
-           if (ret != CKR_OK)
-               ;
+           P11FUNC(p, CloseSession, (p->slot[i].session));
        }
 
        if (p->slot[i].name)



Home | Main Index | Thread Index | Old Index