Module Name: src
Committed By: maya
Date: Tue Apr 18 17:05:05 UTC 2017
Modified Files:
src/sys/opencrypto: cryptosoft.c
Log Message:
Remove duplicate assignment.
We assign the same value unconditionally just before.
from clang static analyzer
XXX surrounding code seems fishy
To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/sys/opencrypto/cryptosoft.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/opencrypto/cryptosoft.c
diff -u src/sys/opencrypto/cryptosoft.c:1.48 src/sys/opencrypto/cryptosoft.c:1.49
--- src/sys/opencrypto/cryptosoft.c:1.48 Thu Apr 13 01:24:34 2017
+++ src/sys/opencrypto/cryptosoft.c Tue Apr 18 17:05:05 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: cryptosoft.c,v 1.48 2017/04/13 01:24:34 ozaki-r Exp $ */
+/* $NetBSD: cryptosoft.c,v 1.49 2017/04/18 17:05:05 maya Exp $ */
/* $FreeBSD: src/sys/opencrypto/cryptosoft.c,v 1.2.2.1 2002/11/21 23:34:23 sam Exp $ */
/* $OpenBSD: cryptosoft.c,v 1.35 2002/04/26 08:43:50 deraadt Exp $ */
@@ -24,7 +24,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cryptosoft.c,v 1.48 2017/04/13 01:24:34 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cryptosoft.c,v 1.49 2017/04/18 17:05:05 maya Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -759,7 +759,6 @@ swcr_compdec(struct cryptodesc *crd, con
if (result < crd->crd_len) {
adj = result - crd->crd_len;
if (outtype == CRYPTO_BUF_MBUF) {
- adj = result - crd->crd_len;
m_adj((struct mbuf *)buf, adj);
}
/* Don't adjust the iov_len, it breaks the kmem_free */