Coverity CID 5027: Remove impossible test.

This commit is contained in:
christos 2008-05-24 16:29:34 +00:00
parent 3af4b27011
commit 7bf4013b89
1 changed files with 11 additions and 13 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: cryptodev.c,v 1.42 2008/05/24 16:28:58 christos Exp $ */
/* $NetBSD: cryptodev.c,v 1.43 2008/05/24 16:29:34 christos Exp $ */
/* $FreeBSD: src/sys/opencrypto/cryptodev.c,v 1.4.2.4 2003/06/03 00:09:02 sam Exp $ */
/* $OpenBSD: cryptodev.c,v 1.53 2002/07/10 22:21:30 mickey Exp $ */
@ -64,7 +64,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: cryptodev.c,v 1.42 2008/05/24 16:28:58 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: cryptodev.c,v 1.43 2008/05/24 16:29:34 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -761,7 +761,6 @@ cryptodev_key(struct crypt_kop *kop)
}
fail:
if (krp) {
kop->crk_status = krp->krp_status;
for (i = 0; i < CRK_MAXPARAM; i++) {
struct crparam *kp = &(krp->krp_param[i]);
@ -773,7 +772,6 @@ fail:
}
}
pool_put(&cryptkop_pool, krp);
}
DPRINTF(("cryptodev_key: error=0x%08x\n", error));
return error;
}