mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-16 02:04:43 +00:00
'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>
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| tm6000-alsa.c | ||
| tm6000-cards.c | ||
| tm6000-core.c | ||
| tm6000-dvb.c | ||
| tm6000-i2c.c | ||
| tm6000-input.c | ||
| tm6000-regs.h | ||
| tm6000-stds.c | ||
| tm6000-usb-isoc.h | ||
| tm6000-video.c | ||
| tm6000.h | ||