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
379379 struct imon_context *context;
380380 const unsigned char vfd_packet6[] = {
381381 0x01, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF };
382− int *data_buf;
382+ int *data_buf = NULL;
383383
384384 context = file->private_data;
385385 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
364364 int i;
365365 int retval = 0;
366366 struct sasem_context *context;
367− int *data_buf;
367+ int *data_buf = NULL;
368368
369369 context = (struct sasem_context *) file->private_data;
370370 if (!context) {