media: usb: don't initialize vars if not needed

Some local variables will be set to an appropriate value before usage.
Thus omit explicit initialisations at the beginning of these functions.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Acked-by: Alexey Klimov <klimov.linux@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
Markus Elfring
2018-02-22 15:45:47 -05:00
committed by Mauro Carvalho Chehab
parent 7b69f2cb91
commit 9aa4d4ea24
7 changed files with 7 additions and 7 deletions

View File

@@ -227,7 +227,7 @@ int go7007_snd_init(struct go7007 *go)
{
static int dev;
struct go7007_snd *gosnd;
int ret = 0;
int ret;
if (dev >= SNDRV_CARDS)
return -ENODEV;