Both lirc_imon and lirc_sasem were causing gcc to complain about the possible use of uninitialized variables.
Showing the changes to drivers/staging/lirc (2 of 2 files). Show all
Unified · Split
| @@ -379,7 +379,7 @@ static ssize_t vfd_write(struct file *file, const char *buf, · 378 unmodified lines | ||
| 379 | 379 | struct imon_context *context; |
| 380 | 380 | const unsigned char vfd_packet6[] = { |
| 381 | 381 | 0x01, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF }; |
| 382 | − int *data_buf; | |
| 382 | + int *data_buf = NULL; | |
| 383 | 383 | |
| 384 | 384 | context = file->private_data; |
| 385 | 385 | if (!context) { |
| @@ -364,7 +364,7 @@ static ssize_t vfd_write(struct file *file, const char *buf, · 363 unmodified lines | ||
| 364 | 364 | int i; |
| 365 | 365 | int retval = 0; |
| 366 | 366 | struct sasem_context *context; |
| 367 | − int *data_buf; | |
| 367 | + int *data_buf = NULL; | |
| 368 | 368 | |
| 369 | 369 | context = (struct sasem_context *) file->private_data; |
| 370 | 370 | if (!context) { |