diff for duplicates of <1165950788.10231.8.camel@localhost> diff --git a/a/1.txt b/N1/1.txt index 818376b..220e6bb 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -11,7 +11,7 @@ diff -rubp linux-2.6.19-rc5_orig/drivers/net/ppp_async.c linux-2.6.19-rc5_kzallo err = -ENOMEM; - ap = kmalloc(sizeof(*ap), GFP_KERNEL); + ap = kzalloc(sizeof(*ap), GFP_KERNEL); - if (ap = 0) + if (ap == 0) goto out; /* initialize the asyncppp structure */ @@ -29,7 +29,7 @@ diff -rubp linux-2.6.19-rc5_orig/drivers/net/ppp_deflate.c linux-2.6.19-rc5_kzal - state = (struct ppp_deflate_state *) kmalloc(sizeof(*state), - GFP_KERNEL); + state = kzalloc(sizeof(*state), GFP_KERNEL); - if (state = NULL) + if (state == NULL) return NULL; - memset (state, 0, sizeof (struct ppp_deflate_state)); @@ -42,7 +42,7 @@ diff -rubp linux-2.6.19-rc5_orig/drivers/net/ppp_deflate.c linux-2.6.19-rc5_kzal - state = (struct ppp_deflate_state *) kmalloc(sizeof(*state), GFP_KERNEL); + state = kzalloc(sizeof(*state), GFP_KERNEL); - if (state = NULL) + if (state == NULL) return NULL; - memset (state, 0, sizeof (struct ppp_deflate_state)); @@ -58,7 +58,7 @@ diff -rubp linux-2.6.19-rc5_orig/drivers/net/ppp_mppe.c linux-2.6.19-rc5_kzalloc - state = (struct ppp_mppe_state *) kmalloc(sizeof(*state), GFP_KERNEL); + state = kzalloc(sizeof(*state), GFP_KERNEL); - if (state = NULL) + if (state == NULL) goto out; - memset(state, 0, sizeof(*state)); @@ -76,7 +76,7 @@ diff -rubp linux-2.6.19-rc5_orig/drivers/net/ppp_synctty.c linux-2.6.19-rc5_kzal - ap = kmalloc(sizeof(*ap), GFP_KERNEL); + ap = kzalloc(sizeof(*ap), GFP_KERNEL); err = -ENOMEM; - if (ap = 0) + if (ap == 0) goto out; /* initialize the syncppp structure */ diff --git a/a/content_digest b/N1/content_digest index 0aa2d5b..80cb484 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,6 +1,6 @@ "From\0Yan Burman <burman.yan@gmail.com>\0" "Subject\0[PATCH 2.6.19] ppp: replace kmalloc+memset with kzalloc\0" - "Date\0Tue, 12 Dec 2006 19:13:08 +0000\0" + "Date\0Tue, 12 Dec 2006 21:13:08 +0200\0" "To\0linux-kernel@vger.kernel.org\0" "Cc\0linux-ppp@vger.kernel.org" " trivial@kernel.org\0" @@ -19,7 +19,7 @@ " \terr = -ENOMEM;\n" "-\tap = kmalloc(sizeof(*ap), GFP_KERNEL);\n" "+\tap = kzalloc(sizeof(*ap), GFP_KERNEL);\n" - " \tif (ap = 0)\n" + " \tif (ap == 0)\n" " \t\tgoto out;\n" " \n" " \t/* initialize the asyncppp structure */\n" @@ -37,7 +37,7 @@ "-\tstate = (struct ppp_deflate_state *) kmalloc(sizeof(*state),\n" "-\t\t\t\t\t\t\tGFP_KERNEL);\n" "+\tstate = kzalloc(sizeof(*state), GFP_KERNEL);\n" - " \tif (state = NULL)\n" + " \tif (state == NULL)\n" " \t\treturn NULL;\n" " \n" "-\tmemset (state, 0, sizeof (struct ppp_deflate_state));\n" @@ -50,7 +50,7 @@ " \n" "-\tstate = (struct ppp_deflate_state *) kmalloc(sizeof(*state), GFP_KERNEL);\n" "+\tstate = kzalloc(sizeof(*state), GFP_KERNEL);\n" - " \tif (state = NULL)\n" + " \tif (state == NULL)\n" " \t\treturn NULL;\n" " \n" "-\tmemset (state, 0, sizeof (struct ppp_deflate_state));\n" @@ -66,7 +66,7 @@ " \n" "-\tstate = (struct ppp_mppe_state *) kmalloc(sizeof(*state), GFP_KERNEL);\n" "+\tstate = kzalloc(sizeof(*state), GFP_KERNEL);\n" - " \tif (state = NULL)\n" + " \tif (state == NULL)\n" " \t\tgoto out;\n" " \n" "-\tmemset(state, 0, sizeof(*state));\n" @@ -84,7 +84,7 @@ "-\tap = kmalloc(sizeof(*ap), GFP_KERNEL);\n" "+\tap = kzalloc(sizeof(*ap), GFP_KERNEL);\n" " \terr = -ENOMEM;\n" - " \tif (ap = 0)\n" + " \tif (ap == 0)\n" " \t\tgoto out;\n" " \n" " \t/* initialize the syncppp structure */\n" @@ -93,4 +93,4 @@ " \tap->mru = PPP_MRU;\n" " \tspin_lock_init(&ap->xmit_lock);" -b571482e909967830bd86e56159f1dd4fdd6e0605fca578a1c85e3e34264ed2a +b4f2f19661f6f5a6f18c7defbb55825280e5a4a07db792f0d49f22b88c64f473
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.