radio-si470x-usb.c warning: can I remove 'buf'?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Tobias,

While going through the compile warnings generated in the daily build I came
across this one:

v4l-dvb-git/drivers/media/radio/si470x/radio-si470x-usb.c: In function 'si470x_int_in_callback':
v4l-dvb-git/drivers/media/radio/si470x/radio-si470x-usb.c:398:16: warning: variable 'buf' set but not used [-Wunused-but-set-variable]

The 'unsigned char buf[RDS_REPORT_SIZE];' is indeed unused, but can I just
remove it? There is this single assignment to buf: 'buf[0] = RDS_REPORT;'.

This makes me wonder if it is perhaps supposed to be used after all.

Please let me know if I can remove it, or if it is a bug that someone needs
to fix.

Regards,

	Hans
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux