summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2014-06-20 22:10:35 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-06-30 01:17:59 +0400
commitb876e985c2273b7bd2d5539f2147ef69f7701129 (patch)
tree8172ce048677be90027aedcbe7c53e03055e0f41 /include/linux/timerqueue.h
parent9086689676f63f51fbec73245c2b8c847b0f1cbb (diff)
downloadlinux-b876e985c2273b7bd2d5539f2147ef69f7701129.tar.xz
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>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions