summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/em28xx
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2017-02-22 23:32:19 +0100
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-04-17 18:11:45 +0200
commitf81a18d860a22b0c56d4dac51752f475cf840144 (patch)
tree4840028a507efa9389ffe345ab66c8b707350f43 /drivers/media/usb/em28xx
parent[media] tc358743: Add OF device ID table (diff)
downloadlinux-f81a18d860a22b0c56d4dac51752f475cf840144.tar.xz
linux-f81a18d860a22b0c56d4dac51752f475cf840144.zip
[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>
Diffstat (limited to 'drivers/media/usb/em28xx')
0 files changed, 0 insertions, 0 deletions