]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
staging: comedi: ni_tiocmd: tidy up ni_tio_input_inttrig()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 28 Jul 2014 17:27:02 +0000 (10:27 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Jul 2014 23:51:00 +0000 (16:51 -0700)
commit78c7a4a6592cde3e2ecba1732727d3ed3866a653
tree48da886eb1045205fbd4404ae32ff055711bcf78
parent65dbae525fc1e6b5c2cd09e1fc700a7d80b3577d
staging: comedi: ni_tiocmd: tidy up ni_tio_input_inttrig()

Remove the BUG_ON(counter == NULL). If this can never happen and it
if did the driver should have died long before this function is called.

For aesthetics, rename the local variable 'retval' to simply 'ret'.

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/ni_tiocmd.c