projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
589a55b
)
cc2520: use devm_kzalloc(.., sizeof(*pointer), ..) pattern
author
Varka Bhadram
<varkabhadram@gmail.com>
Fri, 26 Dec 2014 04:43:38 +0000
(10:13 +0530)
committer
Marcel Holtmann
<marcel@holtmann.org>
Tue, 30 Dec 2014 06:15:55 +0000
(07:15 +0100)
Signed-off-by: Varka Bhadram <varkab@cdac.in>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/net/ieee802154/cc2520.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/ieee802154/cc2520.c
b/drivers/net/ieee802154/cc2520.c
index 033473448d9fece7df527893976417b144d4adba..bc24d9aab292534f9273ae37ff5732de2243d781 100644
(file)
--- a/
drivers/net/ieee802154/cc2520.c
+++ b/
drivers/net/ieee802154/cc2520.c
@@
-843,8
+843,7
@@
static int cc2520_probe(struct spi_device *spi)
struct cc2520_platform_data *pdata;
int ret;
- priv = devm_kzalloc(&spi->dev,
- sizeof(struct cc2520_private), GFP_KERNEL);
+ priv = devm_kzalloc(&spi->dev, sizeof(*priv), GFP_KERNEL);
if (!priv) {
ret = -ENOMEM;
goto err_ret;