]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: comedi: pcmuio: use preferred form for passing the size of a struct
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 18 Jun 2013 20:26:24 +0000 (13:26 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Jun 2013 22:51:05 +0000 (15:51 -0700)
As suggested by the CodingStyle.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/pcmuio.c

index b88b24d290e8b085ef5a345a34927eec27103b96..1c219018d2e529b076ae3b3eee94805c4d5fdcdd 100644 (file)
@@ -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;