All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <20180430163556.2560-3-brgl@bgdev.pl>

diff --git a/a/1.txt b/N1/1.txt
index d17c231..2eab400 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -89,7 +89,7 @@ index 000000000000..bc094f6eb366
 +		  struct platform_device *pdev)
 +{
 +	while (id->name[0]) {
-+		if (strcmp(pdev->name, id->name) = 0) {
++		if (strcmp(pdev->name, id->name) == 0) {
 +			pdev->id_entry = id;
 +			return id;
 +		}
@@ -112,7 +112,7 @@ index 000000000000..bc094f6eb366
 +		return platform_match_id(pdrv->id_table, pdev) != NULL;
 +
 +	/* fall-back to driver name match */
-+	return (strcmp(pdev->name, drv->name) = 0);
++	return (strcmp(pdev->name, drv->name) == 0);
 +}
 +
 +#ifdef CONFIG_PM
@@ -164,20 +164,20 @@ index 000000000000..bc094f6eb366
 +		list_move(&epdrv->list, &early_platform_driver_list);
 +
 +		/* Allow passing parameters after device name */
-+		if (buf[n] = '\0' || buf[n] = ',')
++		if (buf[n] == '\0' || buf[n] == ',')
 +			epdrv->requested_id = -1;
 +		else {
 +			epdrv->requested_id = simple_strtoul(&buf[n + 1],
 +							     &tmp, 10);
 +
-+			if (buf[n] != '.' || (tmp = &buf[n + 1])) {
++			if (buf[n] != '.' || (tmp == &buf[n + 1])) {
 +				epdrv->requested_id = EARLY_PLATFORM_ID_ERROR;
 +				n = 0;
 +			} else
 +				n += strcspn(&buf[n + 1], ",") + 1;
 +		}
 +
-+		if (buf[n] = ',')
++		if (buf[n] == ',')
 +			n++;
 +
 +		if (epdrv->bufsize) {
@@ -255,7 +255,7 @@ index 000000000000..bc094f6eb366
 +
 +	list_for_each_entry(pd, &early_platform_device_list, dev.devres_head)
 +		if (platform_match(&pd->dev, &epdrv->pdrv->driver))
-+			if (pd->id = id)
++			if (pd->id == id)
 +				return pd;
 +
 +	return NULL;
@@ -300,7 +300,7 @@ index 000000000000..bc094f6eb366
 +		if (strcmp(class_str, epdrv->class_str))
 +			continue;
 +
-+		if (id = -2) {
++		if (id == -2) {
 +			match_id = epdrv->requested_id;
 +			left = 1;
 +
@@ -314,7 +314,7 @@ index 000000000000..bc094f6eb366
 +			case EARLY_PLATFORM_ID_UNSET:
 +				break;
 +			default:
-+				if (epdrv->requested_id = id)
++				if (epdrv->requested_id == id)
 +					match_id = EARLY_PLATFORM_ID_UNSET;
 +			}
 +		}
@@ -339,11 +339,13 @@ index 000000000000..bc094f6eb366
 +			 */
 +			if (!match->dev.init_name && slab_is_available()) {
 +				if (match->id != -1)
-+					match->dev.init_name +						kasprintf(GFP_KERNEL, "%s.%d",
++					match->dev.init_name =
++						kasprintf(GFP_KERNEL, "%s.%d",
 +							  match->name,
 +							  match->id);
 +				else
-+					match->dev.init_name +						kasprintf(GFP_KERNEL, "%s",
++					match->dev.init_name =
++						kasprintf(GFP_KERNEL, "%s",
 +							  match->name);
 +
 +				if (!match->dev.init_name)
@@ -912,20 +914,20 @@ index 8075ddc70a17..70b156ee267a 100644
 -		list_move(&epdrv->list, &early_platform_driver_list);
 -
 -		/* Allow passing parameters after device name */
--		if (buf[n] = '\0' || buf[n] = ',')
+-		if (buf[n] == '\0' || buf[n] == ',')
 -			epdrv->requested_id = -1;
 -		else {
 -			epdrv->requested_id = simple_strtoul(&buf[n + 1],
 -							     &tmp, 10);
 -
--			if (buf[n] != '.' || (tmp = &buf[n + 1])) {
+-			if (buf[n] != '.' || (tmp == &buf[n + 1])) {
 -				epdrv->requested_id = EARLY_PLATFORM_ID_ERROR;
 -				n = 0;
 -			} else
 -				n += strcspn(&buf[n + 1], ",") + 1;
 -		}
 -
--		if (buf[n] = ',')
+-		if (buf[n] == ',')
 -			n++;
 -
 -		if (epdrv->bufsize) {
@@ -1003,7 +1005,7 @@ index 8075ddc70a17..70b156ee267a 100644
 -
 -	list_for_each_entry(pd, &early_platform_device_list, dev.devres_head)
 -		if (platform_match(&pd->dev, &epdrv->pdrv->driver))
--			if (pd->id = id)
+-			if (pd->id == id)
 -				return pd;
 -
 -	return NULL;
@@ -1048,7 +1050,7 @@ index 8075ddc70a17..70b156ee267a 100644
 -		if (strcmp(class_str, epdrv->class_str))
 -			continue;
 -
--		if (id = -2) {
+-		if (id == -2) {
 -			match_id = epdrv->requested_id;
 -			left = 1;
 -
@@ -1062,7 +1064,7 @@ index 8075ddc70a17..70b156ee267a 100644
 -			case EARLY_PLATFORM_ID_UNSET:
 -				break;
 -			default:
--				if (epdrv->requested_id = id)
+-				if (epdrv->requested_id == id)
 -					match_id = EARLY_PLATFORM_ID_UNSET;
 -			}
 -		}
@@ -1087,11 +1089,13 @@ index 8075ddc70a17..70b156ee267a 100644
 -			 */
 -			if (!match->dev.init_name && slab_is_available()) {
 -				if (match->id != -1)
--					match->dev.init_name -						kasprintf(GFP_KERNEL, "%s.%d",
+-					match->dev.init_name =
+-						kasprintf(GFP_KERNEL, "%s.%d",
 -							  match->name,
 -							  match->id);
 -				else
--					match->dev.init_name -						kasprintf(GFP_KERNEL, "%s",
+-					match->dev.init_name =
+-						kasprintf(GFP_KERNEL, "%s",
 -							  match->name);
 -
 -				if (!match->dev.init_name)
diff --git a/a/content_digest b/N1/content_digest
index 1235b60..4d95b42 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -1,8 +1,29 @@
  "ref\020180430163556.2560-1-brgl@bgdev.pl\0"
  "From\0Bartosz Golaszewski <brgl@bgdev.pl>\0"
  "Subject\0[PATCH 2/3] platform: move the early platform device support to arch/sh\0"
- "Date\0Mon, 30 Apr 2018 16:35:55 +0000\0"
- "To\0linux-arm-kernel@lists.infradead.org\0"
+ "Date\0Mon, 30 Apr 2018 18:35:55 +0200\0"
+ "To\0Sekhar Nori <nsekhar@ti.com>"
+  Kevin Hilman <khilman@kernel.org>
+  David Lechner <david@lechnology.com>
+  Michael Turquette <mturquette@baylibre.com>
+  Stephen Boyd <sboyd@kernel.org>
+  Arnd Bergmann <arnd@arndb.de>
+  Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+  Mark Rutland <mark.rutland@arm.com>
+  Yoshinori Sato <ysato@users.sourceforge.jp>
+  Rich Felker <dalias@libc.org>
+  Andy Shevchenko <andy.shevchenko@gmail.com>
+  Marc Zyngier <marc.zyngier@arm.com>
+  Rafael J . Wysocki <rafael.j.wysocki@intel.com>
+  Peter Rosin <peda@axentia.se>
+  Jiri Slaby <jslaby@suse.com>
+  Thomas Gleixner <tglx@linutronix.de>
+ " Daniel Lezcano <daniel.lezcano@linaro.org>\0"
+ "Cc\0linux-arm-kernel@lists.infradead.org"
+  linux-kernel@vger.kernel.org
+  linux-serial@vger.kernel.org
+  linux-sh@vger.kernel.org
+ " Bartosz Golaszewski <bgolaszewski@baylibre.com>\0"
  "\00:1\0"
  "b\0"
  "From: Bartosz Golaszewski <bgolaszewski@baylibre.com>\n"
@@ -96,7 +117,7 @@
  "+\t\t  struct platform_device *pdev)\n"
  "+{\n"
  "+\twhile (id->name[0]) {\n"
- "+\t\tif (strcmp(pdev->name, id->name) = 0) {\n"
+ "+\t\tif (strcmp(pdev->name, id->name) == 0) {\n"
  "+\t\t\tpdev->id_entry = id;\n"
  "+\t\t\treturn id;\n"
  "+\t\t}\n"
@@ -119,7 +140,7 @@
  "+\t\treturn platform_match_id(pdrv->id_table, pdev) != NULL;\n"
  "+\n"
  "+\t/* fall-back to driver name match */\n"
- "+\treturn (strcmp(pdev->name, drv->name) = 0);\n"
+ "+\treturn (strcmp(pdev->name, drv->name) == 0);\n"
  "+}\n"
  "+\n"
  "+#ifdef CONFIG_PM\n"
@@ -171,20 +192,20 @@
  "+\t\tlist_move(&epdrv->list, &early_platform_driver_list);\n"
  "+\n"
  "+\t\t/* Allow passing parameters after device name */\n"
- "+\t\tif (buf[n] = '\\0' || buf[n] = ',')\n"
+ "+\t\tif (buf[n] == '\\0' || buf[n] == ',')\n"
  "+\t\t\tepdrv->requested_id = -1;\n"
  "+\t\telse {\n"
  "+\t\t\tepdrv->requested_id = simple_strtoul(&buf[n + 1],\n"
  "+\t\t\t\t\t\t\t     &tmp, 10);\n"
  "+\n"
- "+\t\t\tif (buf[n] != '.' || (tmp = &buf[n + 1])) {\n"
+ "+\t\t\tif (buf[n] != '.' || (tmp == &buf[n + 1])) {\n"
  "+\t\t\t\tepdrv->requested_id = EARLY_PLATFORM_ID_ERROR;\n"
  "+\t\t\t\tn = 0;\n"
  "+\t\t\t} else\n"
  "+\t\t\t\tn += strcspn(&buf[n + 1], \",\") + 1;\n"
  "+\t\t}\n"
  "+\n"
- "+\t\tif (buf[n] = ',')\n"
+ "+\t\tif (buf[n] == ',')\n"
  "+\t\t\tn++;\n"
  "+\n"
  "+\t\tif (epdrv->bufsize) {\n"
@@ -262,7 +283,7 @@
  "+\n"
  "+\tlist_for_each_entry(pd, &early_platform_device_list, dev.devres_head)\n"
  "+\t\tif (platform_match(&pd->dev, &epdrv->pdrv->driver))\n"
- "+\t\t\tif (pd->id = id)\n"
+ "+\t\t\tif (pd->id == id)\n"
  "+\t\t\t\treturn pd;\n"
  "+\n"
  "+\treturn NULL;\n"
@@ -307,7 +328,7 @@
  "+\t\tif (strcmp(class_str, epdrv->class_str))\n"
  "+\t\t\tcontinue;\n"
  "+\n"
- "+\t\tif (id = -2) {\n"
+ "+\t\tif (id == -2) {\n"
  "+\t\t\tmatch_id = epdrv->requested_id;\n"
  "+\t\t\tleft = 1;\n"
  "+\n"
@@ -321,7 +342,7 @@
  "+\t\t\tcase EARLY_PLATFORM_ID_UNSET:\n"
  "+\t\t\t\tbreak;\n"
  "+\t\t\tdefault:\n"
- "+\t\t\t\tif (epdrv->requested_id = id)\n"
+ "+\t\t\t\tif (epdrv->requested_id == id)\n"
  "+\t\t\t\t\tmatch_id = EARLY_PLATFORM_ID_UNSET;\n"
  "+\t\t\t}\n"
  "+\t\t}\n"
@@ -346,11 +367,13 @@
  "+\t\t\t */\n"
  "+\t\t\tif (!match->dev.init_name && slab_is_available()) {\n"
  "+\t\t\t\tif (match->id != -1)\n"
- "+\t\t\t\t\tmatch->dev.init_name +\t\t\t\t\t\tkasprintf(GFP_KERNEL, \"%s.%d\",\n"
+ "+\t\t\t\t\tmatch->dev.init_name =\n"
+ "+\t\t\t\t\t\tkasprintf(GFP_KERNEL, \"%s.%d\",\n"
  "+\t\t\t\t\t\t\t  match->name,\n"
  "+\t\t\t\t\t\t\t  match->id);\n"
  "+\t\t\t\telse\n"
- "+\t\t\t\t\tmatch->dev.init_name +\t\t\t\t\t\tkasprintf(GFP_KERNEL, \"%s\",\n"
+ "+\t\t\t\t\tmatch->dev.init_name =\n"
+ "+\t\t\t\t\t\tkasprintf(GFP_KERNEL, \"%s\",\n"
  "+\t\t\t\t\t\t\t  match->name);\n"
  "+\n"
  "+\t\t\t\tif (!match->dev.init_name)\n"
@@ -919,20 +942,20 @@
  "-\t\tlist_move(&epdrv->list, &early_platform_driver_list);\n"
  "-\n"
  "-\t\t/* Allow passing parameters after device name */\n"
- "-\t\tif (buf[n] = '\\0' || buf[n] = ',')\n"
+ "-\t\tif (buf[n] == '\\0' || buf[n] == ',')\n"
  "-\t\t\tepdrv->requested_id = -1;\n"
  "-\t\telse {\n"
  "-\t\t\tepdrv->requested_id = simple_strtoul(&buf[n + 1],\n"
  "-\t\t\t\t\t\t\t     &tmp, 10);\n"
  "-\n"
- "-\t\t\tif (buf[n] != '.' || (tmp = &buf[n + 1])) {\n"
+ "-\t\t\tif (buf[n] != '.' || (tmp == &buf[n + 1])) {\n"
  "-\t\t\t\tepdrv->requested_id = EARLY_PLATFORM_ID_ERROR;\n"
  "-\t\t\t\tn = 0;\n"
  "-\t\t\t} else\n"
  "-\t\t\t\tn += strcspn(&buf[n + 1], \",\") + 1;\n"
  "-\t\t}\n"
  "-\n"
- "-\t\tif (buf[n] = ',')\n"
+ "-\t\tif (buf[n] == ',')\n"
  "-\t\t\tn++;\n"
  "-\n"
  "-\t\tif (epdrv->bufsize) {\n"
@@ -1010,7 +1033,7 @@
  "-\n"
  "-\tlist_for_each_entry(pd, &early_platform_device_list, dev.devres_head)\n"
  "-\t\tif (platform_match(&pd->dev, &epdrv->pdrv->driver))\n"
- "-\t\t\tif (pd->id = id)\n"
+ "-\t\t\tif (pd->id == id)\n"
  "-\t\t\t\treturn pd;\n"
  "-\n"
  "-\treturn NULL;\n"
@@ -1055,7 +1078,7 @@
  "-\t\tif (strcmp(class_str, epdrv->class_str))\n"
  "-\t\t\tcontinue;\n"
  "-\n"
- "-\t\tif (id = -2) {\n"
+ "-\t\tif (id == -2) {\n"
  "-\t\t\tmatch_id = epdrv->requested_id;\n"
  "-\t\t\tleft = 1;\n"
  "-\n"
@@ -1069,7 +1092,7 @@
  "-\t\t\tcase EARLY_PLATFORM_ID_UNSET:\n"
  "-\t\t\t\tbreak;\n"
  "-\t\t\tdefault:\n"
- "-\t\t\t\tif (epdrv->requested_id = id)\n"
+ "-\t\t\t\tif (epdrv->requested_id == id)\n"
  "-\t\t\t\t\tmatch_id = EARLY_PLATFORM_ID_UNSET;\n"
  "-\t\t\t}\n"
  "-\t\t}\n"
@@ -1094,11 +1117,13 @@
  "-\t\t\t */\n"
  "-\t\t\tif (!match->dev.init_name && slab_is_available()) {\n"
  "-\t\t\t\tif (match->id != -1)\n"
- "-\t\t\t\t\tmatch->dev.init_name -\t\t\t\t\t\tkasprintf(GFP_KERNEL, \"%s.%d\",\n"
+ "-\t\t\t\t\tmatch->dev.init_name =\n"
+ "-\t\t\t\t\t\tkasprintf(GFP_KERNEL, \"%s.%d\",\n"
  "-\t\t\t\t\t\t\t  match->name,\n"
  "-\t\t\t\t\t\t\t  match->id);\n"
  "-\t\t\t\telse\n"
- "-\t\t\t\t\tmatch->dev.init_name -\t\t\t\t\t\tkasprintf(GFP_KERNEL, \"%s\",\n"
+ "-\t\t\t\t\tmatch->dev.init_name =\n"
+ "-\t\t\t\t\t\tkasprintf(GFP_KERNEL, \"%s\",\n"
  "-\t\t\t\t\t\t\t  match->name);\n"
  "-\n"
  "-\t\t\t\tif (!match->dev.init_name)\n"
@@ -1273,4 +1298,4 @@
  "-- \n"
  2.17.0
 
-94bf627dd2b9a23ce002daf9f3780ee10a3862c5e281694051336337cf0c873f
+7823f374f53b7db479bd6a8b720c9d0b72314b408d11ccb368656ce11e807d8f

diff --git a/a/1.txt b/N2/1.txt
index d17c231..2eab400 100644
--- a/a/1.txt
+++ b/N2/1.txt
@@ -89,7 +89,7 @@ index 000000000000..bc094f6eb366
 +		  struct platform_device *pdev)
 +{
 +	while (id->name[0]) {
-+		if (strcmp(pdev->name, id->name) = 0) {
++		if (strcmp(pdev->name, id->name) == 0) {
 +			pdev->id_entry = id;
 +			return id;
 +		}
@@ -112,7 +112,7 @@ index 000000000000..bc094f6eb366
 +		return platform_match_id(pdrv->id_table, pdev) != NULL;
 +
 +	/* fall-back to driver name match */
-+	return (strcmp(pdev->name, drv->name) = 0);
++	return (strcmp(pdev->name, drv->name) == 0);
 +}
 +
 +#ifdef CONFIG_PM
@@ -164,20 +164,20 @@ index 000000000000..bc094f6eb366
 +		list_move(&epdrv->list, &early_platform_driver_list);
 +
 +		/* Allow passing parameters after device name */
-+		if (buf[n] = '\0' || buf[n] = ',')
++		if (buf[n] == '\0' || buf[n] == ',')
 +			epdrv->requested_id = -1;
 +		else {
 +			epdrv->requested_id = simple_strtoul(&buf[n + 1],
 +							     &tmp, 10);
 +
-+			if (buf[n] != '.' || (tmp = &buf[n + 1])) {
++			if (buf[n] != '.' || (tmp == &buf[n + 1])) {
 +				epdrv->requested_id = EARLY_PLATFORM_ID_ERROR;
 +				n = 0;
 +			} else
 +				n += strcspn(&buf[n + 1], ",") + 1;
 +		}
 +
-+		if (buf[n] = ',')
++		if (buf[n] == ',')
 +			n++;
 +
 +		if (epdrv->bufsize) {
@@ -255,7 +255,7 @@ index 000000000000..bc094f6eb366
 +
 +	list_for_each_entry(pd, &early_platform_device_list, dev.devres_head)
 +		if (platform_match(&pd->dev, &epdrv->pdrv->driver))
-+			if (pd->id = id)
++			if (pd->id == id)
 +				return pd;
 +
 +	return NULL;
@@ -300,7 +300,7 @@ index 000000000000..bc094f6eb366
 +		if (strcmp(class_str, epdrv->class_str))
 +			continue;
 +
-+		if (id = -2) {
++		if (id == -2) {
 +			match_id = epdrv->requested_id;
 +			left = 1;
 +
@@ -314,7 +314,7 @@ index 000000000000..bc094f6eb366
 +			case EARLY_PLATFORM_ID_UNSET:
 +				break;
 +			default:
-+				if (epdrv->requested_id = id)
++				if (epdrv->requested_id == id)
 +					match_id = EARLY_PLATFORM_ID_UNSET;
 +			}
 +		}
@@ -339,11 +339,13 @@ index 000000000000..bc094f6eb366
 +			 */
 +			if (!match->dev.init_name && slab_is_available()) {
 +				if (match->id != -1)
-+					match->dev.init_name +						kasprintf(GFP_KERNEL, "%s.%d",
++					match->dev.init_name =
++						kasprintf(GFP_KERNEL, "%s.%d",
 +							  match->name,
 +							  match->id);
 +				else
-+					match->dev.init_name +						kasprintf(GFP_KERNEL, "%s",
++					match->dev.init_name =
++						kasprintf(GFP_KERNEL, "%s",
 +							  match->name);
 +
 +				if (!match->dev.init_name)
@@ -912,20 +914,20 @@ index 8075ddc70a17..70b156ee267a 100644
 -		list_move(&epdrv->list, &early_platform_driver_list);
 -
 -		/* Allow passing parameters after device name */
--		if (buf[n] = '\0' || buf[n] = ',')
+-		if (buf[n] == '\0' || buf[n] == ',')
 -			epdrv->requested_id = -1;
 -		else {
 -			epdrv->requested_id = simple_strtoul(&buf[n + 1],
 -							     &tmp, 10);
 -
--			if (buf[n] != '.' || (tmp = &buf[n + 1])) {
+-			if (buf[n] != '.' || (tmp == &buf[n + 1])) {
 -				epdrv->requested_id = EARLY_PLATFORM_ID_ERROR;
 -				n = 0;
 -			} else
 -				n += strcspn(&buf[n + 1], ",") + 1;
 -		}
 -
--		if (buf[n] = ',')
+-		if (buf[n] == ',')
 -			n++;
 -
 -		if (epdrv->bufsize) {
@@ -1003,7 +1005,7 @@ index 8075ddc70a17..70b156ee267a 100644
 -
 -	list_for_each_entry(pd, &early_platform_device_list, dev.devres_head)
 -		if (platform_match(&pd->dev, &epdrv->pdrv->driver))
--			if (pd->id = id)
+-			if (pd->id == id)
 -				return pd;
 -
 -	return NULL;
@@ -1048,7 +1050,7 @@ index 8075ddc70a17..70b156ee267a 100644
 -		if (strcmp(class_str, epdrv->class_str))
 -			continue;
 -
--		if (id = -2) {
+-		if (id == -2) {
 -			match_id = epdrv->requested_id;
 -			left = 1;
 -
@@ -1062,7 +1064,7 @@ index 8075ddc70a17..70b156ee267a 100644
 -			case EARLY_PLATFORM_ID_UNSET:
 -				break;
 -			default:
--				if (epdrv->requested_id = id)
+-				if (epdrv->requested_id == id)
 -					match_id = EARLY_PLATFORM_ID_UNSET;
 -			}
 -		}
@@ -1087,11 +1089,13 @@ index 8075ddc70a17..70b156ee267a 100644
 -			 */
 -			if (!match->dev.init_name && slab_is_available()) {
 -				if (match->id != -1)
--					match->dev.init_name -						kasprintf(GFP_KERNEL, "%s.%d",
+-					match->dev.init_name =
+-						kasprintf(GFP_KERNEL, "%s.%d",
 -							  match->name,
 -							  match->id);
 -				else
--					match->dev.init_name -						kasprintf(GFP_KERNEL, "%s",
+-					match->dev.init_name =
+-						kasprintf(GFP_KERNEL, "%s",
 -							  match->name);
 -
 -				if (!match->dev.init_name)
diff --git a/a/content_digest b/N2/content_digest
index 1235b60..4c92578 100644
--- a/a/content_digest
+++ b/N2/content_digest
@@ -1,7 +1,7 @@
  "ref\020180430163556.2560-1-brgl@bgdev.pl\0"
- "From\0Bartosz Golaszewski <brgl@bgdev.pl>\0"
+ "From\0brgl@bgdev.pl (Bartosz Golaszewski)\0"
  "Subject\0[PATCH 2/3] platform: move the early platform device support to arch/sh\0"
- "Date\0Mon, 30 Apr 2018 16:35:55 +0000\0"
+ "Date\0Mon, 30 Apr 2018 18:35:55 +0200\0"
  "To\0linux-arm-kernel@lists.infradead.org\0"
  "\00:1\0"
  "b\0"
@@ -96,7 +96,7 @@
  "+\t\t  struct platform_device *pdev)\n"
  "+{\n"
  "+\twhile (id->name[0]) {\n"
- "+\t\tif (strcmp(pdev->name, id->name) = 0) {\n"
+ "+\t\tif (strcmp(pdev->name, id->name) == 0) {\n"
  "+\t\t\tpdev->id_entry = id;\n"
  "+\t\t\treturn id;\n"
  "+\t\t}\n"
@@ -119,7 +119,7 @@
  "+\t\treturn platform_match_id(pdrv->id_table, pdev) != NULL;\n"
  "+\n"
  "+\t/* fall-back to driver name match */\n"
- "+\treturn (strcmp(pdev->name, drv->name) = 0);\n"
+ "+\treturn (strcmp(pdev->name, drv->name) == 0);\n"
  "+}\n"
  "+\n"
  "+#ifdef CONFIG_PM\n"
@@ -171,20 +171,20 @@
  "+\t\tlist_move(&epdrv->list, &early_platform_driver_list);\n"
  "+\n"
  "+\t\t/* Allow passing parameters after device name */\n"
- "+\t\tif (buf[n] = '\\0' || buf[n] = ',')\n"
+ "+\t\tif (buf[n] == '\\0' || buf[n] == ',')\n"
  "+\t\t\tepdrv->requested_id = -1;\n"
  "+\t\telse {\n"
  "+\t\t\tepdrv->requested_id = simple_strtoul(&buf[n + 1],\n"
  "+\t\t\t\t\t\t\t     &tmp, 10);\n"
  "+\n"
- "+\t\t\tif (buf[n] != '.' || (tmp = &buf[n + 1])) {\n"
+ "+\t\t\tif (buf[n] != '.' || (tmp == &buf[n + 1])) {\n"
  "+\t\t\t\tepdrv->requested_id = EARLY_PLATFORM_ID_ERROR;\n"
  "+\t\t\t\tn = 0;\n"
  "+\t\t\t} else\n"
  "+\t\t\t\tn += strcspn(&buf[n + 1], \",\") + 1;\n"
  "+\t\t}\n"
  "+\n"
- "+\t\tif (buf[n] = ',')\n"
+ "+\t\tif (buf[n] == ',')\n"
  "+\t\t\tn++;\n"
  "+\n"
  "+\t\tif (epdrv->bufsize) {\n"
@@ -262,7 +262,7 @@
  "+\n"
  "+\tlist_for_each_entry(pd, &early_platform_device_list, dev.devres_head)\n"
  "+\t\tif (platform_match(&pd->dev, &epdrv->pdrv->driver))\n"
- "+\t\t\tif (pd->id = id)\n"
+ "+\t\t\tif (pd->id == id)\n"
  "+\t\t\t\treturn pd;\n"
  "+\n"
  "+\treturn NULL;\n"
@@ -307,7 +307,7 @@
  "+\t\tif (strcmp(class_str, epdrv->class_str))\n"
  "+\t\t\tcontinue;\n"
  "+\n"
- "+\t\tif (id = -2) {\n"
+ "+\t\tif (id == -2) {\n"
  "+\t\t\tmatch_id = epdrv->requested_id;\n"
  "+\t\t\tleft = 1;\n"
  "+\n"
@@ -321,7 +321,7 @@
  "+\t\t\tcase EARLY_PLATFORM_ID_UNSET:\n"
  "+\t\t\t\tbreak;\n"
  "+\t\t\tdefault:\n"
- "+\t\t\t\tif (epdrv->requested_id = id)\n"
+ "+\t\t\t\tif (epdrv->requested_id == id)\n"
  "+\t\t\t\t\tmatch_id = EARLY_PLATFORM_ID_UNSET;\n"
  "+\t\t\t}\n"
  "+\t\t}\n"
@@ -346,11 +346,13 @@
  "+\t\t\t */\n"
  "+\t\t\tif (!match->dev.init_name && slab_is_available()) {\n"
  "+\t\t\t\tif (match->id != -1)\n"
- "+\t\t\t\t\tmatch->dev.init_name +\t\t\t\t\t\tkasprintf(GFP_KERNEL, \"%s.%d\",\n"
+ "+\t\t\t\t\tmatch->dev.init_name =\n"
+ "+\t\t\t\t\t\tkasprintf(GFP_KERNEL, \"%s.%d\",\n"
  "+\t\t\t\t\t\t\t  match->name,\n"
  "+\t\t\t\t\t\t\t  match->id);\n"
  "+\t\t\t\telse\n"
- "+\t\t\t\t\tmatch->dev.init_name +\t\t\t\t\t\tkasprintf(GFP_KERNEL, \"%s\",\n"
+ "+\t\t\t\t\tmatch->dev.init_name =\n"
+ "+\t\t\t\t\t\tkasprintf(GFP_KERNEL, \"%s\",\n"
  "+\t\t\t\t\t\t\t  match->name);\n"
  "+\n"
  "+\t\t\t\tif (!match->dev.init_name)\n"
@@ -919,20 +921,20 @@
  "-\t\tlist_move(&epdrv->list, &early_platform_driver_list);\n"
  "-\n"
  "-\t\t/* Allow passing parameters after device name */\n"
- "-\t\tif (buf[n] = '\\0' || buf[n] = ',')\n"
+ "-\t\tif (buf[n] == '\\0' || buf[n] == ',')\n"
  "-\t\t\tepdrv->requested_id = -1;\n"
  "-\t\telse {\n"
  "-\t\t\tepdrv->requested_id = simple_strtoul(&buf[n + 1],\n"
  "-\t\t\t\t\t\t\t     &tmp, 10);\n"
  "-\n"
- "-\t\t\tif (buf[n] != '.' || (tmp = &buf[n + 1])) {\n"
+ "-\t\t\tif (buf[n] != '.' || (tmp == &buf[n + 1])) {\n"
  "-\t\t\t\tepdrv->requested_id = EARLY_PLATFORM_ID_ERROR;\n"
  "-\t\t\t\tn = 0;\n"
  "-\t\t\t} else\n"
  "-\t\t\t\tn += strcspn(&buf[n + 1], \",\") + 1;\n"
  "-\t\t}\n"
  "-\n"
- "-\t\tif (buf[n] = ',')\n"
+ "-\t\tif (buf[n] == ',')\n"
  "-\t\t\tn++;\n"
  "-\n"
  "-\t\tif (epdrv->bufsize) {\n"
@@ -1010,7 +1012,7 @@
  "-\n"
  "-\tlist_for_each_entry(pd, &early_platform_device_list, dev.devres_head)\n"
  "-\t\tif (platform_match(&pd->dev, &epdrv->pdrv->driver))\n"
- "-\t\t\tif (pd->id = id)\n"
+ "-\t\t\tif (pd->id == id)\n"
  "-\t\t\t\treturn pd;\n"
  "-\n"
  "-\treturn NULL;\n"
@@ -1055,7 +1057,7 @@
  "-\t\tif (strcmp(class_str, epdrv->class_str))\n"
  "-\t\t\tcontinue;\n"
  "-\n"
- "-\t\tif (id = -2) {\n"
+ "-\t\tif (id == -2) {\n"
  "-\t\t\tmatch_id = epdrv->requested_id;\n"
  "-\t\t\tleft = 1;\n"
  "-\n"
@@ -1069,7 +1071,7 @@
  "-\t\t\tcase EARLY_PLATFORM_ID_UNSET:\n"
  "-\t\t\t\tbreak;\n"
  "-\t\t\tdefault:\n"
- "-\t\t\t\tif (epdrv->requested_id = id)\n"
+ "-\t\t\t\tif (epdrv->requested_id == id)\n"
  "-\t\t\t\t\tmatch_id = EARLY_PLATFORM_ID_UNSET;\n"
  "-\t\t\t}\n"
  "-\t\t}\n"
@@ -1094,11 +1096,13 @@
  "-\t\t\t */\n"
  "-\t\t\tif (!match->dev.init_name && slab_is_available()) {\n"
  "-\t\t\t\tif (match->id != -1)\n"
- "-\t\t\t\t\tmatch->dev.init_name -\t\t\t\t\t\tkasprintf(GFP_KERNEL, \"%s.%d\",\n"
+ "-\t\t\t\t\tmatch->dev.init_name =\n"
+ "-\t\t\t\t\t\tkasprintf(GFP_KERNEL, \"%s.%d\",\n"
  "-\t\t\t\t\t\t\t  match->name,\n"
  "-\t\t\t\t\t\t\t  match->id);\n"
  "-\t\t\t\telse\n"
- "-\t\t\t\t\tmatch->dev.init_name -\t\t\t\t\t\tkasprintf(GFP_KERNEL, \"%s\",\n"
+ "-\t\t\t\t\tmatch->dev.init_name =\n"
+ "-\t\t\t\t\t\tkasprintf(GFP_KERNEL, \"%s\",\n"
  "-\t\t\t\t\t\t\t  match->name);\n"
  "-\n"
  "-\t\t\t\tif (!match->dev.init_name)\n"
@@ -1273,4 +1277,4 @@
  "-- \n"
  2.17.0
 
-94bf627dd2b9a23ce002daf9f3780ee10a3862c5e281694051336337cf0c873f
+c4cf0cbca761db95fa5b89a94042ca80817c4e18615006a07de81b4d70e34602

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.