summaryrefslogtreecommitdiff
path: root/drivers/staging/comedi/comedidev.h
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2012-10-23 20:22:37 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-24 03:28:19 (GMT)
commitc34fa261b0ac3a862ccd3f71ee55a16b920dfc83 (patch)
treeae5af03ada6b3cddb532e36c1110c13d103adf5a /drivers/staging/comedi/comedidev.h
parenta51d02067efc069aab14b221b625bd82d8e659dd (diff)
downloadlinux-fsl-qoriq-c34fa261b0ac3a862ccd3f71ee55a16b920dfc83.tar.xz
staging: comedi: remove inline alloc_private()
This inline function has a very generic name and it's only a wrapper around a simple kzalloc(). Since the inline function does not save any lines-of-code, instead of renaming it just remove it and do the kzalloc() directly. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Ian Abbott <abbotti@mev.co.uk> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/comedi/comedidev.h')
-rw-r--r--drivers/staging/comedi/comedidev.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/staging/comedi/comedidev.h b/drivers/staging/comedi/comedidev.h
index 100ea0b..78a44fc 100644
--- a/drivers/staging/comedi/comedidev.h
+++ b/drivers/staging/comedi/comedidev.h
@@ -415,14 +415,6 @@ struct comedi_lrange {
/* some silly little inline functions */
-static inline int alloc_private(struct comedi_device *dev, int size)
-{
- dev->private = kzalloc(size, GFP_KERNEL);
- if (!dev->private)
- return -ENOMEM;
- return 0;
-}
-
static inline unsigned int bytes_per_sample(const struct comedi_subdevice *subd)
{
if (subd->subdev_flags & SDF_LSAMPL)