mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
uwb: use kcalloc where appropriate
Signed-off-by: David Vrabel <[email protected]>
This commit is contained in:
parent
45c16cd928
commit
92c4d9bd16
3 changed files with 3 additions and 3 deletions
|
|
@ -443,7 +443,7 @@ void uwbd_dev_onair(struct uwb_rc *rc, struct uwb_beca_e *bce)
|
|||
|
||||
uwb_mac_addr_print(macbuf, sizeof(macbuf), bce->mac_addr);
|
||||
uwb_dev_addr_print(devbuf, sizeof(devbuf), &bce->dev_addr);
|
||||
uwb_dev = kcalloc(1, sizeof(*uwb_dev), GFP_KERNEL);
|
||||
uwb_dev = kzalloc(sizeof(struct uwb_dev), GFP_KERNEL);
|
||||
if (uwb_dev == NULL) {
|
||||
dev_err(dev, "new device %s: Cannot allocate memory\n",
|
||||
macbuf);
|
||||
|
|
|
|||
Loading…
Reference in a new issue