Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5eb9f8ca authored by Varka Bhadram's avatar Varka Bhadram Committed by Marcel Holtmann
Browse files

cc2520: use devm_kzalloc(.., sizeof(*pointer), ..) pattern

parent 589a55b0
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;