All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] kmalloc to kzalloc patches for drivers/mfd
@ 2006-09-18  0:53 ` Om Narasimhan
  0 siblings, 0 replies; 55+ messages in thread
From: Om Narasimhan @ 2006-09-18  0:53 UTC (permalink / raw)
  To: linux-kernel, kernel-janitors

Tested by compiling.

Signed off by Om Narasimhan <om.turyx@gmail.com>

 drivers/mfd/mcp-core.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/mfd/mcp-core.c b/drivers/mfd/mcp-core.c
index 75f401d..b4ed57e 100644
--- a/drivers/mfd/mcp-core.c
+++ b/drivers/mfd/mcp-core.c
@@ -200,9 +200,8 @@ struct mcp *mcp_host_alloc(struct device
 {
 	struct mcp *mcp;

-	mcp = kmalloc(sizeof(struct mcp) + size, GFP_KERNEL);
+	mcp = kzalloc(sizeof(struct mcp) + size, GFP_KERNEL);
 	if (mcp) {
-		memset(mcp, 0, sizeof(struct mcp) + size);
 		spin_lock_init(&mcp->lock);
 		mcp->attached_device.parent = parent;
 		mcp->attached_device.bus = &mcp_bus_type;
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply related	[flat|nested] 55+ messages in thread

end of thread, other threads:[~2006-09-22 22:55 UTC | newest]

Thread overview: 55+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-18  0:53 [KJ] kmalloc to kzalloc patches for drivers/mfd Om Narasimhan
2006-09-18  0:53 ` Om Narasimhan
2006-09-18  0:53 ` [KJ] kmalloc to kzalloc patches for drivers/atm Om Narasimhan
2006-09-18  0:53   ` Om Narasimhan
2006-09-18  1:19   ` [KJ] " Dmitry Torokhov
2006-09-18  1:19     ` Dmitry Torokhov
2006-09-18  9:42   ` [KJ] " Alan Cox
2006-09-18  9:42     ` Alan Cox
2006-09-18 12:07     ` [KJ] " Pekka Enberg
2006-09-18 12:07       ` Pekka Enberg
2006-09-18  0:53 ` [KJ] kmalloc to kzalloc patches for drivers/base Om Narasimhan
2006-09-18  0:53   ` Om Narasimhan
2006-09-18  1:08   ` [KJ] " Dmitry Torokhov
2006-09-18  1:08     ` Dmitry Torokhov
2006-09-18  2:27     ` [KJ] " Om Narasimhan
2006-09-18  2:27       ` Om Narasimhan
2006-09-18  9:40   ` [KJ] " Alan Cox
2006-09-18  9:40     ` Alan Cox
2006-09-18 12:31   ` [KJ] " Greg KH
2006-09-18 12:31     ` Greg KH
2006-09-18  0:54 ` [KJ] kmalloc to kzalloc patches for drivers/block Om Narasimhan
2006-09-18  0:54   ` Om Narasimhan
2006-09-18  9:43 ` [KJ] kmalloc to kzalloc patches for drivers/mfd Alan Cox
2006-09-18  9:43   ` Alan Cox
2006-09-21  6:11 ` [KJ] kmalloc to kzalloc patches for drivers/block [sane version] Om Narasimhan
2006-09-21  6:11   ` Om Narasimhan
2006-09-21  7:20   ` [KJ] " Nishanth Aravamudan
2006-09-21  7:20     ` Nishanth Aravamudan
2006-09-22  5:40     ` Om Narasimhan
2006-09-22  5:40       ` Om Narasimhan
2006-09-22  6:04       ` Om Narasimhan
2006-09-22  6:04         ` Om Narasimhan
2006-09-22  8:43         ` Jiri Slaby
2006-09-22  8:43           ` Jiri Slaby
2006-09-22 11:32           ` Paulo Marques
2006-09-22 11:32             ` Paulo Marques
2006-09-22 12:03             ` Pekka Enberg
2006-09-22 12:03               ` Pekka Enberg
2006-09-22 13:03               ` Paulo Marques
2006-09-22 13:03                 ` Paulo Marques
2006-09-22 13:45                 ` Dmitry Torokhov
2006-09-22 13:45                   ` Dmitry Torokhov
2006-09-22 22:55                   ` Om Narasimhan
2006-09-22 22:55                     ` Om Narasimhan
2006-09-22  8:36       ` Jiri Slaby
2006-09-22  8:36         ` Jiri Slaby
2006-09-22 11:28         ` Paulo Marques
2006-09-22 11:28           ` Paulo Marques
2006-09-21  7:12 ` [KJ] kmalloc to kzalloc patches for drivers/atm " Om Narasimhan
2006-09-21  7:12   ` Om Narasimhan
2006-09-21 13:36   ` [KJ] " Dmitry Torokhov
2006-09-21 13:36     ` Dmitry Torokhov
2006-09-22  5:29     ` [KJ] " Om Narasimhan
2006-09-22  5:29       ` Om Narasimhan
2006-09-21  7:35 ` [KJ] kmalloc to kzalloc patches for drivers/block " Thomas Petazzoni

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.