diff options
author | Deepak Saxena <dsaxena@plexity.net> | 2005-11-07 01:01:26 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-07 07:54:00 -0800 |
commit | 089b1dbbde28f0f641c20beabba28fa89ab4fab9 (patch) | |
tree | d95a59688897569f2aa875ec5a9576caaedfc2cc /drivers/bluetooth/bluecard_cs.c | |
parent | f5e3c2faa20615e900ab26bd957f898400435924 (diff) | |
download | op-kernel-dev-089b1dbbde28f0f641c20beabba28fa89ab4fab9.zip op-kernel-dev-089b1dbbde28f0f641c20beabba28fa89ab4fab9.tar.gz |
[PATCH] bluetooth: kmalloc + memset -> kzalloc conversion
Signed-off-by: Deepak Saxena <dsaxena@plexity.net>
Cc: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/bluetooth/bluecard_cs.c')
-rw-r--r-- | drivers/bluetooth/bluecard_cs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/bluetooth/bluecard_cs.c b/drivers/bluetooth/bluecard_cs.c index 26fe9c0..f36c563 100644 --- a/drivers/bluetooth/bluecard_cs.c +++ b/drivers/bluetooth/bluecard_cs.c @@ -870,10 +870,9 @@ static dev_link_t *bluecard_attach(void) int ret; /* Create new info device */ - info = kmalloc(sizeof(*info), GFP_KERNEL); + info = kzalloc(sizeof(*info), GFP_KERNEL); if (!info) return NULL; - memset(info, 0, sizeof(*info)); link = &info->link; link->priv = info; |