History

[media] lirc: silence some compile warnings

Both lirc_imon and lirc_sasem were causing gcc to complain about the possible use of uninitialized variables.

Jarod Wilson committed 15 years ago

Commit 55734781 parent dc8e2aa2 files · +2 −2Browse files

Showing the changes to drivers/staging/lirc (2 of 2 files). Show all

Unified · Split

2 files
  1. drivers/staging/lirc/lirc_imon.c +1 −1
  2. drivers/staging/lirc/lirc_sasem.c +1 −1
drivers/staging/lirc/lirc_imon.c+1−1
@@ -379,7 +379,7 @@ static ssize_t vfd_write(struct file *file, const char *buf, · 378 unmodified lines
379 struct imon_context *context;379 struct imon_context *context;
380 const unsigned char vfd_packet6[] = {380 const unsigned char vfd_packet6[] = {
381 0x01, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF };381 0x01, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF };
382 int *data_buf;382 int *data_buf = NULL;
383 383
384 context = file->private_data;384 context = file->private_data;
385 if (!context) {385 if (!context) {
drivers/staging/lirc/lirc_sasem.c+1−1
@@ -364,7 +364,7 @@ static ssize_t vfd_write(struct file *file, const char *buf, · 363 unmodified lines
364 int i;364 int i;
365 int retval = 0;365 int retval = 0;
366 struct sasem_context *context;366 struct sasem_context *context;
367 int *data_buf;367 int *data_buf = NULL;
368 368
369 context = (struct sasem_context *) file->private_data;369 context = (struct sasem_context *) file->private_data;
370 if (!context) {370 if (!context) {