diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-06-14 05:47:35 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-06-23 02:14:35 -0400 |
commit | be5daa9bd220d384c7010aee6d3886279a61a183 (patch) | |
tree | df87335f8a97a8d5a9fd164f43cb118af0a326f7 /drivers | |
parent | c6711c3e6d4976716633047c0f6bbd953d6831fb (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/dvb/siano/smscoreapi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/dvb/siano/smscoreapi.c b/drivers/media/dvb/siano/smscoreapi.c index 32be382f0e97..a246903c3341 100644 --- a/drivers/media/dvb/siano/smscoreapi.c +++ b/drivers/media/dvb/siano/smscoreapi.c | |||
@@ -1422,8 +1422,8 @@ int smscore_gpio_configure(struct smscore_device_t *coredev, u8 PinNum, | |||
1422 | struct smscore_gpio_config *pGpioConfig) { | 1422 | struct smscore_gpio_config *pGpioConfig) { |
1423 | 1423 | ||
1424 | u32 totalLen; | 1424 | u32 totalLen; |
1425 | u32 TranslatedPinNum; | 1425 | u32 TranslatedPinNum = 0; |
1426 | u32 GroupNum; | 1426 | u32 GroupNum = 0; |
1427 | u32 ElectricChar; | 1427 | u32 ElectricChar; |
1428 | u32 groupCfg; | 1428 | u32 groupCfg; |
1429 | void *buffer; | 1429 | void *buffer; |