linux/drivers/staging/comedi
H Hartley Sweeten b876e985c2 staging: comedi: mite: cleanup mite_unsetup()
This function is only called by comedi drivers during the (*detach) of the
driver. After it is called mite_free() is always called to kfree the allocated
mite_struct pointer.

Rename this function to mite_detach() and merge the kfree() from mite_free()
into it.

Remove the unnecessary clearing of the mite variables since the mite pointer
is going to be kfree()'d anyway.

The mite_detach() function checks if the pointer is valid so remove the
unnecessary checks in the callers.

The check can also be removed in ni_660x since the ni_660x_free_mite_rings()
function does not actually need the 'mite' pointer.

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>
2014-06-29 14:17:59 -07:00
..
drivers staging: comedi: mite: cleanup mite_unsetup() 2014-06-29 14:17:59 -07:00
kcomedilib
comedi_buf.c staging: comedi: pass subdevice to comedi_buf_write_n_available() 2014-05-23 21:25:50 +09:00
comedi_compat32.c
comedi_compat32.h
comedi_fops.c staging: comedi: introduce comedi_buf_n_bytes_ready() 2014-06-26 20:00:44 -04:00
comedi_internal.h staging: comedi: pass subdevice to comedi_buf_is_mmapped() 2014-05-23 21:25:49 +09:00
comedi_pci.c
comedi_pcmcia.c
comedi_usb.c
comedi.h staging: comedi: ke_counter: expose clock source options to user space 2014-06-26 20:00:43 -04:00
comedidev.h staging: comedi: introduce comedi_buf_n_bytes_ready() 2014-06-26 20:00:44 -04:00
comedilib.h
drivers.c staging: comedi: remove subdevice member of struct comedi_async 2014-05-23 21:25:51 +09:00
Kconfig Merge 3.16-rc2 into staging-next 2014-06-22 12:33:51 -04:00
Makefile
proc.c Staging: comedi: proc: title block update 2014-03-19 04:41:04 +00:00
range.c
TODO staging: comedi: TODO: remove item "reserve major number" 2014-05-28 14:18:11 -07:00