]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (12107): smscoreapi: fix compile warning
authorHans Verkuil <hverkuil@xs4all.nl>
Sun, 14 Jun 2009 09:47:35 +0000 (06:47 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 23 Jun 2009 06:14:35 +0000 (03:14 -0300)
commitdef123aa57cdb9aa72fb5356ff790766036dd35f
treedf87335f8a97a8d5a9fd164f43cb118af0a326f7
parentd7b40bfc36ae344266feba852c70c320c206b98a
V4L/DVB (12107): smscoreapi: fix compile warning

gcc 4.3.1 generates this warning:

v4l/smscoreapi.c: In function 'smscore_gpio_configure':
v4l/smscoreapi.c:1481: warning: 'GroupNum' may be used uninitialized in this function
v4l/smscoreapi.c:1480: warning: 'TranslatedPinNum' may be used uninitialized in this function

While in practice this will not happen, it is something that the compiler
can't determine. Initializing these two local variables to 0 suppresses
this warning.

Cc: Udi Atar <udi.linuxtv@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/siano/smscoreapi.c