diff for duplicates of <20051001073631.GK25424@plexity.net> diff --git a/a/1.txt b/N1/1.txt index 72880d1..0853518 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -68,7 +68,7 @@ diff --git a/drivers/i2c/busses/i2c-keywest.c b/drivers/i2c/busses/i2c-keywest.c (sizeof(struct keywest_chan) + 4) * nchan; - iface = (struct keywest_iface *) kmalloc(tsize, GFP_KERNEL); + iface = (struct keywest_iface *) kzalloc(tsize, GFP_KERNEL); - if (iface = NULL) { + if (iface == NULL) { printk(KERN_ERR "i2c-keywest: can't allocate inteface !\n"); pmac_low_i2c_unlock(np); return -ENOMEM; @@ -134,7 +134,7 @@ diff --git a/drivers/i2c/busses/i2c-parport.c b/drivers/i2c/busses/i2c-parport.c - adapter = kmalloc(sizeof(struct i2c_par), GFP_KERNEL); + adapter = kzalloc(sizeof(struct i2c_par), GFP_KERNEL); - if (adapter = NULL) { + if (adapter == NULL) { printk(KERN_ERR "i2c-parport: Failed to kmalloc\n"); return; } @@ -151,7 +151,7 @@ diff --git a/drivers/i2c/busses/i2c-pmac-smu.c b/drivers/i2c/busses/i2c-pmac-smu - iface = kmalloc(sizeof(struct smu_iface), GFP_KERNEL); + iface = kzalloc(sizeof(struct smu_iface), GFP_KERNEL); - if (iface = NULL) { + if (iface == NULL) { printk(KERN_ERR "i2c-pmac-smu: can't allocate inteface !\n"); return -ENOMEM; } @@ -169,7 +169,7 @@ diff --git a/drivers/i2c/busses/i2c-prosavage.c b/drivers/i2c/busses/i2c-prosava - pci_set_drvdata(dev, kmalloc(sizeof(struct s_i2c_chip), GFP_KERNEL)); + pci_set_drvdata(dev, kzalloc(sizeof(struct s_i2c_chip), GFP_KERNEL)); chip = (struct s_i2c_chip *)pci_get_drvdata(dev); - if (chip = NULL) { + if (chip == NULL) { return -ENOMEM; } diff --git a/a/content_digest b/N1/content_digest index 94bb861..7bfcb0a 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,6 +1,6 @@ - "From\0dsaxena@plexity.net (Deepak Saxena)\0" - "Subject\0[lm-sensors] [PATCH] [I2C] kmalloc + memset -> kzalloc conversion\0" - "Date\0Sat, 01 Oct 2005 09:37:06 +0000\0" + "From\0Deepak Saxena <dsaxena@plexity.net>\0" + "Subject\0[PATCH] [I2C] kmalloc + memset -> kzalloc conversion\0" + "Date\0Sat, 1 Oct 2005 00:36:31 -0700\0" "To\0Linus Torvalds <torvalds@osdl.org>" " Andrew Morton <akpm@osdl.org>\0" "Cc\0lm-sensors@lm-sensors.org" @@ -77,7 +77,7 @@ " \t\t(sizeof(struct keywest_chan) + 4) * nchan;\n" "-\tiface = (struct keywest_iface *) kmalloc(tsize, GFP_KERNEL);\n" "+\tiface = (struct keywest_iface *) kzalloc(tsize, GFP_KERNEL);\n" - " \tif (iface = NULL) {\n" + " \tif (iface == NULL) {\n" " \t\tprintk(KERN_ERR \"i2c-keywest: can't allocate inteface !\\n\");\n" " \t\tpmac_low_i2c_unlock(np);\n" " \t\treturn -ENOMEM;\n" @@ -143,7 +143,7 @@ " \t\n" "-\tadapter = kmalloc(sizeof(struct i2c_par), GFP_KERNEL);\n" "+\tadapter = kzalloc(sizeof(struct i2c_par), GFP_KERNEL);\n" - " \tif (adapter = NULL) {\n" + " \tif (adapter == NULL) {\n" " \t\tprintk(KERN_ERR \"i2c-parport: Failed to kmalloc\\n\");\n" " \t\treturn;\n" " \t}\n" @@ -160,7 +160,7 @@ " \n" "-\tiface = kmalloc(sizeof(struct smu_iface), GFP_KERNEL);\n" "+\tiface = kzalloc(sizeof(struct smu_iface), GFP_KERNEL);\n" - " \tif (iface = NULL) {\n" + " \tif (iface == NULL) {\n" " \t\tprintk(KERN_ERR \"i2c-pmac-smu: can't allocate inteface !\\n\");\n" " \t\treturn -ENOMEM;\n" " \t}\n" @@ -178,7 +178,7 @@ "- pci_set_drvdata(dev, kmalloc(sizeof(struct s_i2c_chip), GFP_KERNEL)); \n" "+ pci_set_drvdata(dev, kzalloc(sizeof(struct s_i2c_chip), GFP_KERNEL)); \n" " \tchip = (struct s_i2c_chip *)pci_get_drvdata(dev);\n" - " \tif (chip = NULL) {\n" + " \tif (chip == NULL) {\n" " \t\treturn -ENOMEM;\n" " \t}\n" " \n" @@ -386,4 +386,4 @@ "\n" Even a stopped clock gives the right time twice a day. -cdba3aa43910a87cb4b0df0db972c76cafd864a7a37cc2eb88984bc1c9a35054 +c542be5caa9f63f573bf1f67486c6348162c1162587ba6d861dc0922468b87be
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.