mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] cs53l32a: kzalloc conversion
@ 2006-01-03 14:33 Panagiotis Issaris
  2006-01-05  0:39 ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: Panagiotis Issaris @ 2006-01-03 14:33 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel

From: Panagiotis Issaris <takis@issaris.org>

Conversion of kmalloc+memset to kzalloc.

Signed-off-by: Panagiotis Issaris <takis@issaris.org>

---

 drivers/media/video/cs53l32a.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

d27ad6f2f4c46ed0b29034c413cc8f948506fdc6
diff --git a/drivers/media/video/cs53l32a.c b/drivers/media/video/cs53l32a.c
index 780b352..f9e3b8b 100644
--- a/drivers/media/video/cs53l32a.c
+++ b/drivers/media/video/cs53l32a.c
@@ -146,11 +146,10 @@ static int cs53l32a_attach(struct i2c_ad
 	if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_BYTE_DATA))
 		return 0;
 
-	client = kmalloc(sizeof(struct i2c_client), GFP_KERNEL);
+	client = kzalloc(sizeof(struct i2c_client), GFP_KERNEL);
 	if (client == 0)
 		return -ENOMEM;
 
-	memset(client, 0, sizeof(struct i2c_client));
 	client->addr = address;
 	client->adapter = adapter;
 	client->driver = &i2c_driver;
-- 
0.99.9.GIT

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

end of thread, other threads:[~2006-01-05 11:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-03 14:33 [PATCH] cs53l32a: kzalloc conversion Panagiotis Issaris
2006-01-05  0:39 ` Andrew Morton
2006-01-05 11:57   ` Takis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®