staging: comedi: adv_pci1760: Do not return EINVAL for CMDF_ROUND_DOWN.
authorPhil Turnbull <phil.turnbull@oracle.com>
Fri, 29 Jul 2016 13:43:56 +0000 (09:43 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Aug 2016 15:07:19 +0000 (17:07 +0200)
commitc71f20ee76342376e3c4c67cdbe7421d8c4e886e
treed035847abb1eb9a1a4b766866a0fa4a5b3a63ddd
parent5ca05345c56cb979e1a25ab6146437002f95cac8
staging: comedi: adv_pci1760: Do not return EINVAL for CMDF_ROUND_DOWN.

The CMDF_ROUND_DOWN case falls through and so always returns -EINVAL.

Fixes: 14b93bb6bbf0 ("staging: comedi: adv_pci_dio: separate out PCI-1760 support")
Signed-off-by: Phil Turnbull <phil.turnbull@oracle.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/adv_pci1760.c