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/lirc_imon.c (1 of 2 files). Show all

Unified · Split

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