]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
[media] easycap: use usb_kill_urb wrapper functions
authorTomas Winkler <tomas.winkler@intel.com>
Wed, 9 Nov 2011 11:26:37 +0000 (08:26 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 24 Nov 2011 21:16:22 +0000 (19:16 -0200)
commit8b1fad2f046fb825046fee3a41885a70123de988
treecbd13524a17376af1b62f0c3d94d95018f6b746d
parent7dfdae8e32a26ef3b3aa8d114d2fed93d7680169
[media] easycap: use usb_kill_urb wrapper functions

1. kill_video_usb can be used in all places where video urbs are killed
and reduce code repetition

2. remove unnecessary check for easycap == NULL in the function
as it is always checked by the calling function

3. rename the function to easycap_video_kill_urb to reduce
possibility of name conflict

4. implement also easycap_audio_kill_urb

5. simplify freeing urbs

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/media/easycap/easycap.h
drivers/staging/media/easycap/easycap_ioctl.c
drivers/staging/media/easycap/easycap_main.c
drivers/staging/media/easycap/easycap_sound.c