Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 55734785 authored by Jarod Wilson's avatar Jarod Wilson Committed by Mauro Carvalho Chehab
Browse files

[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: default avatarJarod Wilson <jarod@redhat.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent dc8e2aa3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {
+1 −1
Original line number Diff line number Diff line
@@ -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) {