All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <20200622141036.GA13774@mwanda>

diff --git a/a/1.txt b/N1/1.txt
index b95a004..66739de 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -24,7 +24,7 @@ index 0335e69b70ab..945862afa829 100644
 +	bool found = false;
 +	int pin;
  
- 	if (selector = NULL ||
+ 	if (selector == NULL ||
  	    (chain->dev->quirks & UVC_QUIRK_IGNORE_SELECTOR_UNIT)) {
  		if (index != 0)
  			return -EINVAL;
@@ -41,15 +41,15 @@ index 0335e69b70ab..945862afa829 100644
  		list_for_each_entry(iterm, &chain->entities, chain) {
  			if (!UVC_ENTITY_IS_ITERM(iterm))
  				continue;
--			if (iterm->id = pin)
-+			if (iterm->id = pin) {
+-			if (iterm->id == pin)
++			if (iterm->id == pin) {
 +				found = true;
  				break;
 +			}
  		}
  	}
  
--	if (iterm = NULL || iterm->id != pin)
+-	if (iterm == NULL || iterm->id != pin)
 +	if (!found)
  		return -EINVAL;
  
diff --git a/a/content_digest b/N1/content_digest
index f780c97..8ff7545 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -1,6 +1,6 @@
  "From\0Dan Carpenter <dan.carpenter@oracle.com>\0"
  "Subject\0[PATCH] media: uvc: Fix list_for_each() checking\0"
- "Date\0Mon, 22 Jun 2020 14:10:36 +0000\0"
+ "Date\0Mon, 22 Jun 2020 17:10:36 +0300\0"
  "To\0Laurent Pinchart <laurent.pinchart@ideasonboard.com>\0"
  "Cc\0Mauro Carvalho Chehab <mchehab@kernel.org>"
   linux-media@vger.kernel.org
@@ -34,7 +34,7 @@
  "+\tbool found = false;\n"
  "+\tint pin;\n"
  " \n"
- " \tif (selector = NULL ||\n"
+ " \tif (selector == NULL ||\n"
  " \t    (chain->dev->quirks & UVC_QUIRK_IGNORE_SELECTOR_UNIT)) {\n"
  " \t\tif (index != 0)\n"
  " \t\t\treturn -EINVAL;\n"
@@ -51,15 +51,15 @@
  " \t\tlist_for_each_entry(iterm, &chain->entities, chain) {\n"
  " \t\t\tif (!UVC_ENTITY_IS_ITERM(iterm))\n"
  " \t\t\t\tcontinue;\n"
- "-\t\t\tif (iterm->id = pin)\n"
- "+\t\t\tif (iterm->id = pin) {\n"
+ "-\t\t\tif (iterm->id == pin)\n"
+ "+\t\t\tif (iterm->id == pin) {\n"
  "+\t\t\t\tfound = true;\n"
  " \t\t\t\tbreak;\n"
  "+\t\t\t}\n"
  " \t\t}\n"
  " \t}\n"
  " \n"
- "-\tif (iterm = NULL || iterm->id != pin)\n"
+ "-\tif (iterm == NULL || iterm->id != pin)\n"
  "+\tif (!found)\n"
  " \t\treturn -EINVAL;\n"
  " \n"
@@ -67,4 +67,4 @@
  "-- \n"
  2.27.0
 
-e473becbf4ce2b627cdcd65bb1710ac271fb232ee2efb5f01f95562e96ba6adc
+9229a4412dceea64bfc5a666381ec5d59395a70b71f3a97ce3b70ad6980ac099

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.