diff options
author | David Vrabel <dv02@dv02pc01.europe.root.pri> | 2008-10-15 09:50:10 -0400 |
---|---|---|
committer | David Vrabel <dv02@dv02pc01.europe.root.pri> | 2008-10-15 09:50:10 -0400 |
commit | 92c4d9bd1648b3eaca6b8b8f8932eec390ba7327 (patch) | |
tree | 86e696c08aca7d30284319f1f6adabeeeace1f18 /drivers/uwb/lc-dev.c | |
parent | 45c16cd9287819cf1c870f2d8e7738c4c90512ca (diff) |
uwb: use kcalloc where appropriate
Signed-off-by: David Vrabel <david.vrabel@csr.com>
Diffstat (limited to 'drivers/uwb/lc-dev.c')
-rw-r--r-- | drivers/uwb/lc-dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/uwb/lc-dev.c b/drivers/uwb/lc-dev.c index a6cb8ad731a6..15f856c9689a 100644 --- a/drivers/uwb/lc-dev.c +++ b/drivers/uwb/lc-dev.c | |||
@@ -443,7 +443,7 @@ void uwbd_dev_onair(struct uwb_rc *rc, struct uwb_beca_e *bce) | |||
443 | 443 | ||
444 | uwb_mac_addr_print(macbuf, sizeof(macbuf), bce->mac_addr); | 444 | uwb_mac_addr_print(macbuf, sizeof(macbuf), bce->mac_addr); |
445 | uwb_dev_addr_print(devbuf, sizeof(devbuf), &bce->dev_addr); | 445 | uwb_dev_addr_print(devbuf, sizeof(devbuf), &bce->dev_addr); |
446 | uwb_dev = kcalloc(1, sizeof(*uwb_dev), GFP_KERNEL); | 446 | uwb_dev = kzalloc(sizeof(struct uwb_dev), GFP_KERNEL); |
447 | if (uwb_dev == NULL) { | 447 | if (uwb_dev == NULL) { |
448 | dev_err(dev, "new device %s: Cannot allocate memory\n", | 448 | dev_err(dev, "new device %s: Cannot allocate memory\n", |
449 | macbuf); | 449 | macbuf); |