summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorVarka Bhadram <varkabhadram@gmail.com>2014-12-26 05:43:38 +0100
committerMarcel Holtmann <marcel@holtmann.org>2014-12-30 07:15:55 +0100
commit5eb9f8caac333842e840325fe7299465bcdf2111 (patch)
tree7316e5a11395479ab9b754fb8a243d73e0a739ff /drivers
parentnet: ieee802154: don't use devm_pinctrl_get_select_default() in probe (diff)
downloadlinux-5eb9f8caac333842e840325fe7299465bcdf2111.tar.xz
linux-5eb9f8caac333842e840325fe7299465bcdf2111.zip
cc2520: use devm_kzalloc(.., sizeof(*pointer), ..) pattern
Signed-off-by: Varka Bhadram <varkab@cdac.in> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ieee802154/cc2520.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ieee802154/cc2520.c b/drivers/net/ieee802154/cc2520.c
index 033473448d9f..bc24d9aab292 100644
--- 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;