diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2013-06-18 13:26:24 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-06-24 15:51:05 -0700 |
commit | e99f0f073d23795a3e58782a28431685c28ba6c4 (patch) | |
tree | 587a5cba36f1d0e97e1d0fbec98047249f293f34 /drivers/staging/comedi | |
parent | b07839c09b5235caae99ba2f8c24968a9115707c (diff) | |
download | linux-e99f0f073d23795a3e58782a28431685c28ba6c4.tar.gz linux-e99f0f073d23795a3e58782a28431685c28ba6c4.tar.bz2 linux-e99f0f073d23795a3e58782a28431685c28ba6c4.zip |
staging: comedi: pcmuio: use preferred form for passing the size of a struct
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>
Diffstat (limited to 'drivers/staging/comedi')
-rw-r--r-- | drivers/staging/comedi/drivers/pcmuio.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/comedi/drivers/pcmuio.c b/drivers/staging/comedi/drivers/pcmuio.c index b88b24d290e8..1c219018d2e5 100644 --- a/drivers/staging/comedi/drivers/pcmuio.c +++ b/drivers/staging/comedi/drivers/pcmuio.c @@ -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; |