Re: radio-si470x-usb.c warning: can I remove 'buf'?
From: Hans Verkuil <hidden>
Date: 2011-08-27 14:33:19
On Friday, August 26, 2011 21:03:53 Tobias Lorenz wrote:
Hi Hans,quoted
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:quoted
variable 'buf' set but not used [-Wunused-but-set-variable] The 'unsigned char buf[RDS_REPORT_SIZE];' is indeed unused, but can Ijustquoted
remove it? There is this single assignment to buf: 'buf[0] =RDS_REPORT;'.quoted
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 someoneneedsquoted
to fix.this is an artifact from shifting the rds processing function into interrupt context. Yes, this can safely be removed. Can you do this?
Will do. I've just posted a pull request that includes this fix. Regards, Hans