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

Commit e99f0f07 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman
Browse files

staging: comedi: pcmuio: use preferred form for passing the size of a struct



As suggested by the CodingStyle.

Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b07839c0
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -618,9 +618,7 @@ static int pcmuio_attach(struct comedi_device *dev, struct comedi_devconfig *it)
		spin_lock_init(&devpriv->asics[asic].spinlock);

	n_subdevs = board->num_asics * 2;
	devpriv->sprivs = kcalloc(n_subdevs,
				  sizeof(struct pcmuio_subdev_private),
				  GFP_KERNEL);
	devpriv->sprivs = kcalloc(n_subdevs, sizeof(*subpriv), GFP_KERNEL);
	if (!devpriv->sprivs)
		return -ENOMEM;