Commit 55734785 authored by Jarod Wilson's avatar Jarod Wilson Committed by Mauro Carvalho Chehab

[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: default avatarJarod Wilson <jarod@redhat.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent dc8e2aa3
...@@ -379,7 +379,7 @@ static ssize_t vfd_write(struct file *file, const char *buf, ...@@ -379,7 +379,7 @@ static ssize_t vfd_write(struct file *file, const char *buf,
struct imon_context *context; struct imon_context *context;
const unsigned char vfd_packet6[] = { const unsigned char vfd_packet6[] = {
0x01, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF }; 0x01, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF };
int *data_buf; int *data_buf = NULL;
context = file->private_data; context = file->private_data;
if (!context) { if (!context) {
......
...@@ -364,7 +364,7 @@ static ssize_t vfd_write(struct file *file, const char *buf, ...@@ -364,7 +364,7 @@ static ssize_t vfd_write(struct file *file, const char *buf,
int i; int i;
int retval = 0; int retval = 0;
struct sasem_context *context; struct sasem_context *context;
int *data_buf; int *data_buf = NULL;
context = (struct sasem_context *) file->private_data; context = (struct sasem_context *) file->private_data;
if (!context) { if (!context) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment