[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:
parent
dc8e2aa3b5
commit
55734785cd
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue