staging: comedi: pcmmio.c: remove kcalloc() failure message
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 26 Nov 2013 23:41:32 +0000 (16:41 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Dec 2013 17:20:19 +0000 (09:20 -0800)
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>
drivers/staging/comedi/drivers/pcmmio.c

index 063496d6c00ef003cc83f9149ece2d9461f8446b..ec098d883eb72fc1e23d4f26c2142dc111b1f97c 100644 (file)
@@ -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)