media/planb: replace interruptible_sleep_on()
Subsystems (2)
PATCH 22/34 media/planb: replace interruptible_sleep_on()
Hi,
Please consider applying.
Description: Use wait_event() instead of the deprecated interruptible_sleep_on(). Current code does not check for signals, so interruptible seems unnecessary.
Signed-off-by Nishanth Aravamudan <[email protected]>
drivers/media/video/planb.c +2 -2
@@ -40,6 +40,7 @@#include <linux/mm.h> #include <linux/sched.h> #include <linux/videodev.h> +#include <linux/wait.h> #include <asm/uaccess.h> #include <asm/io.h> #include <asm/prom.h>
@@ -1609,8 +1610,7 @@ static int planb_ioctl(struct video_devi }planb_lock (pb);/* empty the grabbing queue */ -while (pb->grabbing) -interruptible_sleep_on (&pb->capq); +wait_event (pb->capq, !pb->grabbing); pb->maxlines = maxlines; pb->win.norm = v.norm;/* Stop overlay if running */
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors