aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/comedi/drivers/pcmmio.c
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2012-06-18 11:18:25 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-06-18 17:16:11 -0700
commit520706607befd1f5c20ec14db35d6be45791bc41 (patch)
treecb8977f900f2b93b1308f99f8d07f07f120a1087 /drivers/staging/comedi/drivers/pcmmio.c
parent60ff46106744220506841c45f82576b9b56cf22e (diff)
downloadkernel_goldelico_gta04-520706607befd1f5c20ec14db35d6be45791bc41.tar.gz
kernel_goldelico_gta04-520706607befd1f5c20ec14db35d6be45791bc41.tar.bz2
kernel_goldelico_gta04-520706607befd1f5c20ec14db35d6be45791bc41.zip
staging: comedi: remove unneeded sanity check in insn_bits functions
The comedi core does the sanity check to make sure that the data length the INSN_BITS instruction is 2. There is no need for the drivers to do this check. Remove all the sanity checks in the drivers. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Ian Abbott <abbotti@mev.co.uk> Cc: Frank Mori Hess <fmhess@users.sourceforge.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/comedi/drivers/pcmmio.c')
-rw-r--r--drivers/staging/comedi/drivers/pcmmio.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/comedi/drivers/pcmmio.c b/drivers/staging/comedi/drivers/pcmmio.c
index 0e64d848a2a..a918cc08770 100644
--- a/drivers/staging/comedi/drivers/pcmmio.c
+++ b/drivers/staging/comedi/drivers/pcmmio.c
@@ -275,8 +275,6 @@ static int pcmmio_dio_insn_bits(struct comedi_device *dev,
struct comedi_insn *insn, unsigned int *data)
{
int byte_no;
- if (insn->n != 2)
- return -EINVAL;
/* NOTE:
reading a 0 means this channel was high