[media] lirc: silence some compile warnings
authorJarod Wilson <jarod@redhat.com>
Fri, 4 Mar 2011 20:57:24 +0000 (17:57 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 22 Mar 2011 22:24:20 +0000 (19:24 -0300)
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>
drivers/staging/lirc/lirc_imon.c
drivers/staging/lirc/lirc_sasem.c

index 235cab0..4039eda 100644 (file)
@@ -379,7 +379,7 @@ static ssize_t vfd_write(struct file *file, const char *buf,
        struct imon_context *context;
        const unsigned char vfd_packet6[] = {
                0x01, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF };
-       int *data_buf;
+       int *data_buf = NULL;
 
        context = file->private_data;
        if (!context) {
index 925eabe..63a438d 100644 (file)
@@ -364,7 +364,7 @@ static ssize_t vfd_write(struct file *file, const char *buf,
        int i;
        int retval = 0;
        struct sasem_context *context;
-       int *data_buf;
+       int *data_buf = NULL;
 
        context = (struct sasem_context *) file->private_data;
        if (!context) {