All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <20150210130214.GA18429@sloth>

diff --git a/a/1.txt b/N1/1.txt
index a085b8b..9bf3b0f 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -16,12 +16,13 @@ index 82e259d..a6c6bb7 100644
  static struct parahotplug_request *
  parahotplug_request_create(struct controlvm_message *msg)
  {
--	struct parahotplug_request *req -	    kmalloc(sizeof(struct parahotplug_request),
+-	struct parahotplug_request *req =
+-	    kmalloc(sizeof(struct parahotplug_request),
 -		    GFP_KERNEL|__GFP_NORETRY);
 +	struct parahotplug_request *req;
 +
 +	req = kmalloc(sizeof(struct parahotplug_request), GFP_KERNEL|__GFP_NORETRY);
- 	if (req = NULL)
+ 	if (req == NULL)
  		return NULL;
  
 diff --git a/drivers/staging/unisys/visorutil/charqueue.c b/drivers/staging/unisys/visorutil/charqueue.c
@@ -36,7 +37,7 @@ index ac7acb7..e2ee5ee 100644
 +	struct charqueue *cq;
  
 +	cq = kmalloc(alloc_size, GFP_KERNEL|__GFP_NORETRY);
- 	if (cq = NULL) {
+ 	if (cq == NULL) {
  		ERRDRV("visor_charqueue_create allocation failed (alloc_size=%d)",
  		       alloc_size);
 diff --git a/drivers/staging/unisys/visorutil/memregion_direct.c b/drivers/staging/unisys/visorutil/memregion_direct.c
@@ -52,7 +53,7 @@ index 33522cc..f4ecac0 100644
 +	struct memregion *memregion;
 +
 +	memregion = kzalloc(sizeof(*memregion), GFP_KERNEL | __GFP_NORETRY);
- 	if (memregion = NULL) {
+ 	if (memregion == NULL) {
  		ERRDRV("visor_memregion_create allocation failed");
  		return NULL;
 -- 
diff --git a/a/content_digest b/N1/content_digest
index 83ae0dc..c89bc3b 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -1,6 +1,6 @@
  "From\0Quentin Lambert <lambert.quentin@gmail.com>\0"
  "Subject\0[PATCH 1/1] staging: unisys: Remove allocation from declaration line\0"
- "Date\0Tue, 10 Feb 2015 13:02:14 +0000\0"
+ "Date\0Tue, 10 Feb 2015 14:02:14 +0100\0"
  "To\0Benjamin Romer <benjamin.romer@unisys.com>"
   David Kershner <david.kershner@unisys.com>
  " Greg Kroah-Hartman <gregkh@linuxfoundation.org>\0"
@@ -28,12 +28,13 @@
  " static struct parahotplug_request *\n"
  " parahotplug_request_create(struct controlvm_message *msg)\n"
  " {\n"
- "-\tstruct parahotplug_request *req -\t    kmalloc(sizeof(struct parahotplug_request),\n"
+ "-\tstruct parahotplug_request *req =\n"
+ "-\t    kmalloc(sizeof(struct parahotplug_request),\n"
  "-\t\t    GFP_KERNEL|__GFP_NORETRY);\n"
  "+\tstruct parahotplug_request *req;\n"
  "+\n"
  "+\treq = kmalloc(sizeof(struct parahotplug_request), GFP_KERNEL|__GFP_NORETRY);\n"
- " \tif (req = NULL)\n"
+ " \tif (req == NULL)\n"
  " \t\treturn NULL;\n"
  " \n"
  "diff --git a/drivers/staging/unisys/visorutil/charqueue.c b/drivers/staging/unisys/visorutil/charqueue.c\n"
@@ -48,7 +49,7 @@
  "+\tstruct charqueue *cq;\n"
  " \n"
  "+\tcq = kmalloc(alloc_size, GFP_KERNEL|__GFP_NORETRY);\n"
- " \tif (cq = NULL) {\n"
+ " \tif (cq == NULL) {\n"
  " \t\tERRDRV(\"visor_charqueue_create allocation failed (alloc_size=%d)\",\n"
  " \t\t       alloc_size);\n"
  "diff --git a/drivers/staging/unisys/visorutil/memregion_direct.c b/drivers/staging/unisys/visorutil/memregion_direct.c\n"
@@ -64,10 +65,10 @@
  "+\tstruct memregion *memregion;\n"
  "+\n"
  "+\tmemregion = kzalloc(sizeof(*memregion), GFP_KERNEL | __GFP_NORETRY);\n"
- " \tif (memregion = NULL) {\n"
+ " \tif (memregion == NULL) {\n"
  " \t\tERRDRV(\"visor_memregion_create allocation failed\");\n"
  " \t\treturn NULL;\n"
  "-- \n"
  1.9.1
 
-89e6ee2fe49a3908d4319d85894df6dd5bad00fd00e7ce1d5138fa5153aa1ece
+ccaa5268fe16defbce4a11925711f5907e6455c536cf18180c81265190f2e1da

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.