diff options
author | Deepak Saxena <dsaxena@plexity.net> | 2005-11-07 04:01:26 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-07 10:54:00 -0500 |
commit | 089b1dbbde28f0f641c20beabba28fa89ab4fab9 (patch) | |
tree | d95a59688897569f2aa875ec5a9576caaedfc2cc /drivers/bluetooth/btuart_cs.c | |
parent | f5e3c2faa20615e900ab26bd957f898400435924 (diff) |
[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/btuart_cs.c')
-rw-r--r-- | drivers/bluetooth/btuart_cs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/bluetooth/btuart_cs.c b/drivers/bluetooth/btuart_cs.c index 89486ea7a021..529a28a3209d 100644 --- a/drivers/bluetooth/btuart_cs.c +++ b/drivers/bluetooth/btuart_cs.c | |||
@@ -590,10 +590,9 @@ static dev_link_t *btuart_attach(void) | |||
590 | int ret; | 590 | int ret; |
591 | 591 | ||
592 | /* Create new info device */ | 592 | /* Create new info device */ |
593 | info = kmalloc(sizeof(*info), GFP_KERNEL); | 593 | info = kzalloc(sizeof(*info), GFP_KERNEL); |
594 | if (!info) | 594 | if (!info) |
595 | return NULL; | 595 | return NULL; |
596 | memset(info, 0, sizeof(*info)); | ||
597 | 596 | ||
598 | link = &info->link; | 597 | link = &info->link; |
599 | link->priv = info; | 598 | link->priv = info; |