aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJarod Wilson <jarod@redhat.com>2011-03-04 15:57:24 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-03-22 18:24:20 -0400
commit55734785cdaff596be9a5238af54fc0f4ace2e63 (patch)
treeb3b606f0cc5d2c5117e5dd3f07829c88675de9b2 /drivers
parentdc8e2aa3b5a6c13baa77709bcaa2e7e483d9d006 (diff)
[media] lirc: silence some compile warnings
Both lirc_imon and lirc_sasem were causing gcc to complain about the possible use of uninitialized variables. Signed-off-by: Jarod Wilson <jarod@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/lirc/lirc_imon.c2
-rw-r--r--drivers/staging/lirc/lirc_sasem.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/lirc/lirc_imon.c b/drivers/staging/lirc/lirc_imon.c
index 235cab0eb087..4039eda2a15b 100644
--- a/drivers/staging/lirc/lirc_imon.c
+++ b/drivers/staging/lirc/lirc_imon.c
@@ -379,7 +379,7 @@ static ssize_t vfd_write(struct file *file, const char *buf,
379 struct imon_context *context; 379 struct imon_context *context;
380 const unsigned char vfd_packet6[] = { 380 const unsigned char vfd_packet6[] = {
381 0x01, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF }; 381 0x01, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF };
382 int *data_buf; 382 int *data_buf = NULL;
383 383
384 context = file->private_data; 384 context = file->private_data;
385 if (!context) { 385 if (!context) {
diff --git a/drivers/staging/lirc/lirc_sasem.c b/drivers/staging/lirc/lirc_sasem.c
index 925eabe14854..63a438d1c849 100644
--- a/drivers/staging/lirc/lirc_sasem.c
+++ b/drivers/staging/lirc/lirc_sasem.c
@@ -364,7 +364,7 @@ static ssize_t vfd_write(struct file *file, const char *buf,
364 int i; 364 int i;
365 int retval = 0; 365 int retval = 0;
366 struct sasem_context *context; 366 struct sasem_context *context;
367 int *data_buf; 367 int *data_buf = NULL;
368 368
369 context = (struct sasem_context *) file->private_data; 369 context = (struct sasem_context *) file->private_data;
370 if (!context) { 370 if (!context) {