[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>
This commit is contained in:
Jarod Wilson 2011-03-04 17:57:24 -03:00 committed by Mauro Carvalho Chehab
parent dc8e2aa3b5
commit 55734785cd
2 changed files with 2 additions and 2 deletions

View 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) {

View 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) {