All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <1576069352.2812.1.camel@HansenPartnership.com>

diff --git a/a/1.txt b/N1/1.txt
index d5676c2..af84d04 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -129,14 +129,14 @@ index 000000000000..c3c03bad7e6a
 +	*data_len -= 2;
 +
 +	data[0] = _tag(UNIV, PRIM, INT);
-+	if (integer = 0) {
++	if (integer == 0) {
 +		*d++ = 0;
 +		goto out;
 +	}
 +	for (i = sizeof(integer); i > 0 ; i--) {
 +		int byte = integer >> (8*(i-1));
 +
-+		if (!found && byte = 0)
++		if (!found && byte == 0)
 +			continue;
 +		found = true;
 +		if (byte & 0x80) {
@@ -147,7 +147,7 @@ index 000000000000..c3c03bad7e6a
 +			*d++ = 0;
 +			(*data_len)--;
 +		}
-+		if (*data_len = 0)
++		if (*data_len == 0)
 +			return -EINVAL;
 +		*d++ = byte;
 +		(*data_len)--;
@@ -170,13 +170,13 @@ index 000000000000..c3c03bad7e6a
 +		return -EINVAL;
 +
 +	/* quick case */
-+	if (oid = 0) {
++	if (oid == 0) {
 +		*data++ = 0x80;
 +		(*data_len)--;
 +		goto out;
 +	}
 +
-+	while (oid >> start = 0)
++	while (oid >> start == 0)
 +		start -= 7;
 +
 +	while (start > 0 && *data_len > 0) {
diff --git a/a/content_digest b/N1/content_digest
index 3984857..ac898de 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -7,7 +7,7 @@
  "ref\035B37965-359E-40E0-8F44-836A56EC4756@infradead.org\0"
  "From\0James Bottomley <James.Bottomley@hansenpartnership.com>\0"
  "Subject\0Re: [PATCH v2 2/8] lib: add asn.1 encoder\0"
- "Date\0Wed, 11 Dec 2019 13:02:32 +0000\0"
+ "Date\0Wed, 11 Dec 2019 08:02:32 -0500\0"
  "To\0David Woodhouse <dwmw2@infradead.org>"
  " David Howells <dhowells@redhat.com>\0"
  "Cc\0linux-integrity@vger.kernel.org"
@@ -147,14 +147,14 @@
  "+\t*data_len -= 2;\n"
  "+\n"
  "+\tdata[0] = _tag(UNIV, PRIM, INT);\n"
- "+\tif (integer = 0) {\n"
+ "+\tif (integer == 0) {\n"
  "+\t\t*d++ = 0;\n"
  "+\t\tgoto out;\n"
  "+\t}\n"
  "+\tfor (i = sizeof(integer); i > 0 ; i--) {\n"
  "+\t\tint byte = integer >> (8*(i-1));\n"
  "+\n"
- "+\t\tif (!found && byte = 0)\n"
+ "+\t\tif (!found && byte == 0)\n"
  "+\t\t\tcontinue;\n"
  "+\t\tfound = true;\n"
  "+\t\tif (byte & 0x80) {\n"
@@ -165,7 +165,7 @@
  "+\t\t\t*d++ = 0;\n"
  "+\t\t\t(*data_len)--;\n"
  "+\t\t}\n"
- "+\t\tif (*data_len = 0)\n"
+ "+\t\tif (*data_len == 0)\n"
  "+\t\t\treturn -EINVAL;\n"
  "+\t\t*d++ = byte;\n"
  "+\t\t(*data_len)--;\n"
@@ -188,13 +188,13 @@
  "+\t\treturn -EINVAL;\n"
  "+\n"
  "+\t/* quick case */\n"
- "+\tif (oid = 0) {\n"
+ "+\tif (oid == 0) {\n"
  "+\t\t*data++ = 0x80;\n"
  "+\t\t(*data_len)--;\n"
  "+\t\tgoto out;\n"
  "+\t}\n"
  "+\n"
- "+\twhile (oid >> start = 0)\n"
+ "+\twhile (oid >> start == 0)\n"
  "+\t\tstart -= 7;\n"
  "+\n"
  "+\twhile (start > 0 && *data_len > 0) {\n"
@@ -472,4 +472,4 @@
  "+}\n"
  +EXPORT_SYMBOL_GPL(asn1_encode_boolean);
 
-0b4b7688156480e6c6dd049d3ed70ddd52348bf5acfb28790307f79c02949372
+fe2113e6ddb680616ec4183762d537482f039f59975241e67f2804caac31b57b

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.