[media] tm6000: Fix resource freeing in 'tm6000_prepare_isoc()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 22 Feb 2017 22:32:19 +0000 (19:32 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 17 Apr 2017 16:11:45 +0000 (13:11 -0300)
commitf81a18d860a22b0c56d4dac51752f475cf840144
tree4840028a507efa9389ffe345ab66c8b707350f43
parentc0746c1ad334825c3d828fcc47c0cbf404523d1e
[media] tm6000: Fix resource freeing in 'tm6000_prepare_isoc()'

'usb_free_urb(urb)' is a no-op, because urb is known to be NULL.

It is likelly that releasing resources allocated by
'tm6000_alloc_urb_buffers()' just a few lines above is expected here.

This has been spotted by the following coccinelle script:
@@
expression ret, x, e;
identifier f;
@@

*   if (x == NULL)
    {
     ... when != x = e;
(
*    f(<+...x...+>);
|
*    ret = f(<+...x...+>);
)
     ...
    }

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/tm6000/tm6000-video.c