usbvision: drop unused define USBVISION_SAY_AND_WAIT
PATCH 1/1 usbvision: drop unused define USBVISION_SAY_AND_WAIT
This define uses the deprecated interruptible_sleep_on_timeout function. Since this define is unused anyway we just remove it.
Signed-off-by Hans Verkuil <[email protected]>
Cc Arnd Bergmann <[email protected]>
--- drivers/media/usb/usbvision/usbvision.h | 8 -------- 1 file changed, 8 deletions(-)
drivers/media/usb/usbvision/usbvision.h +0 -8
@@ -203,14 +203,6 @@ enum { mr =LIMIT_RGB (mm_r); \ } -/* Debugging aid */ -#define USBVISION_SAY_AND_WAIT (what) { \ - wait_queue_head_t wq; \ - init_waitqueue_head(&wq); \ - printk(KERN_INFO "Say: %s\n", what); \ - interruptible_sleep_on_timeout(&wq, HZ * 3); \ -} -/* * This macro checks if usbvision is still operational. The 'usbvision' * pointer must be valid, usbvision->dev must be valid, we are not
Signature · 1 line
1.8.5.2
Quoted 5 lines · Hans Verkuil
This define uses the deprecated
interruptible_sleep_on_timeoutfunction. Since this define is unused anyway we just remove it.Signed-off-by Hans Verkuil <[email protected]>Cc Arnd Bergmann <[email protected]>
Acked-by Arnd Bergmann <[email protected]>
Clearly better than my patch, thanks!