]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (4316): Check __must_check warnings
authorMichael Krufky <mkrufky@linuxtv.org>
Wed, 19 Jul 2006 16:23:38 +0000 (13:23 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sat, 29 Jul 2006 20:22:21 +0000 (17:22 -0300)
commitb81b196d939d31e916a5f00e7d47b9fb9148a187
treee661e3bbd6ebcd5537bfb7e526d8bbc55a3b0ebc
parentfd905e029446e97773be588f675dbddb8f812ff4
V4L/DVB (4316): Check __must_check warnings

Check __must_check warnings for class_device_register and class_device_create_file

video_device_create_file was declared as a void, but instead should
return the int value of class_device_create_file.

Move the check from bttv-driver.c into v4l2-dev.h, because all other
callers of video_device_create_file must also be checked.

Replace the call to class_device_create_file in videodev.c with
video_device_create_file, as defined in v4l2-dev.h, so that the
return value of class_device_create_file will be checked.

Check the return value of class_device_register in videodev.c and
pvrusb2-sysfs.c

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/bt8xx/bttv-driver.c
drivers/media/video/pvrusb2/pvrusb2-sysfs.c
drivers/media/video/videodev.c
include/media/v4l2-dev.h