mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-03 18:12:25 -04:00
staging: comedi: pcmmio.c: remove kcalloc() failure message
An allocation failure will have already displayed a message. 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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
909cc6f9fa
commit
15d2006970
@@ -991,11 +991,8 @@ static int pcmmio_attach(struct comedi_device *dev, struct comedi_devconfig *it)
|
||||
devpriv->sprivs =
|
||||
kcalloc(n_subdevs, sizeof(struct pcmmio_subdev_private),
|
||||
GFP_KERNEL);
|
||||
if (!devpriv->sprivs) {
|
||||
printk(KERN_ERR "comedi%d: cannot allocate subdevice private data structures\n",
|
||||
dev->minor);
|
||||
if (!devpriv->sprivs)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
ret = comedi_alloc_subdevices(dev, n_subdevs);
|
||||
if (ret)
|
||||
|
||||
Reference in New Issue
Block a user