[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 235cab0eb0877483267fac5dbdf6c75364a5f59e..4039eda2a15ba9cb769b1d5588e9a6a09aa4f56a 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 925eabe14854d93cc0267110da2ba646758f0aaf..63a438d1c84946e88bc626308728825e10644379 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) {