diff options
author | Varka Bhadram <varkabhadram@gmail.com> | 2014-12-26 07:43:38 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-12-30 09:15:55 +0300 |
commit | 5eb9f8caac333842e840325fe7299465bcdf2111 (patch) | |
tree | 7316e5a11395479ab9b754fb8a243d73e0a739ff /drivers/net | |
parent | 589a55b07dfb71d4c45e008a8df8bb94ff813fe6 (diff) | |
download | linux-5eb9f8caac333842e840325fe7299465bcdf2111.tar.xz |
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/net')
-rw-r--r-- | drivers/net/ieee802154/cc2520.c | 3 |
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; |