From: Mariusz Kozlowski Date: Wed, 8 Nov 2006 14:34:50 +0000 (+0100) Subject: usb: pvrusb2-io free urb cleanup X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4c6f7d4a889ad997483a4c0318111b4a506f0fe3;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git usb: pvrusb2-io free urb cleanup - usb_free_urb() cleanup Signed-off-by: Mariusz Kozlowski Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/media/video/pvrusb2/pvrusb2-io.c b/drivers/media/video/pvrusb2/pvrusb2-io.c index 70aa63eba0cb..57fb32033543 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-io.c +++ b/drivers/media/video/pvrusb2/pvrusb2-io.c @@ -289,7 +289,7 @@ static void pvr2_buffer_done(struct pvr2_buffer *bp) pvr2_buffer_set_none(bp); bp->signature = 0; bp->stream = NULL; - if (bp->purb) usb_free_urb(bp->purb); + usb_free_urb(bp->purb); pvr2_trace(PVR2_TRACE_BUF_POOL,"/*---TRACE_FLOW---*/" " bufferDone %p",bp); }