summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/siano/smscoreapi.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-06-14 11:47:35 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-06-14 11:47:35 +0200
commit1d881651c4e9931b20895a9a124e06be1a15e759 (patch)
tree42e3c40ed4073c03480af9388495ffb101350e6b /linux/drivers/media/dvb/siano/smscoreapi.c
parent02e8081a1e62b49fcf6ea760aef69a419bb183cf (diff)
downloadmediapointer-dvb-s2-1d881651c4e9931b20895a9a124e06be1a15e759.tar.gz
mediapointer-dvb-s2-1d881651c4e9931b20895a9a124e06be1a15e759.tar.bz2
smscoreapi: fix compile warning
From: Hans Verkuil <hverkuil@xs4all.nl> 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. Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> CC: Udi Atar <udi.linuxtv@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/dvb/siano/smscoreapi.c')
-rw-r--r--linux/drivers/media/dvb/siano/smscoreapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/siano/smscoreapi.c b/linux/drivers/media/dvb/siano/smscoreapi.c
index e513408fc..54f59f24e 100644
--- a/linux/drivers/media/dvb/siano/smscoreapi.c
+++ b/linux/drivers/media/dvb/siano/smscoreapi.c
@@ -1477,8 +1477,8 @@ int smscore_gpio_configure(struct smscore_device_t *coredev, u8 PinNum,
struct smscore_gpio_config *pGpioConfig) {
u32 totalLen;
- u32 TranslatedPinNum;
- u32 GroupNum;
+ u32 TranslatedPinNum = 0;
+ u32 GroupNum = 0;
u32 ElectricChar;
u32 groupCfg;
void *buffer;