summaryrefslogtreecommitdiff
path: root/drivers/media/usb/go7007/snd-go7007.c
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2018-02-22 23:45:47 +0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2018-03-06 18:39:59 +0300
commit9aa4d4ea244481fe98eb181ec5d7a9f7cb86f076 (patch)
tree0a80ffce88f9ca6775796c57f49f1686ea4a9a16 /drivers/media/usb/go7007/snd-go7007.c
parent7b69f2cb91319abdacf37be501db2eae45112a09 (diff)
downloadlinux-9aa4d4ea244481fe98eb181ec5d7a9f7cb86f076.tar.xz
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>
Diffstat (limited to 'drivers/media/usb/go7007/snd-go7007.c')
-rw-r--r--drivers/media/usb/go7007/snd-go7007.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/go7007/snd-go7007.c b/drivers/media/usb/go7007/snd-go7007.c
index c618764480c6..f84a2130f033 100644
--- a/drivers/media/usb/go7007/snd-go7007.c
+++ b/drivers/media/usb/go7007/snd-go7007.c
@@ -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;