Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] media: Change variable type to bool

The variable frame_ready is only assigned the values true and false.
Change its type to bool.
The simplified semantic patch that find this problem is as
follows (http://coccinelle.lip6.fr/):
@exists@
type T;
identifier b;
@@
- T
+ bool
b = ...;
... when any
b = \(true\|false\)

Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>

authored by

Peter Senna Tschudin and committed by
Mauro Carvalho Chehab
b5eee196 dc77523c

+1 -1
+1 -1
drivers/media/usb/cpia2/cpia2_usb.c
··· 209 209 { 210 210 int i; 211 211 unsigned char *cdata; 212 - static int frame_ready = false; 212 + static bool frame_ready = false; 213 213 struct camera_data *cam = (struct camera_data *) urb->context; 214 214 215 215 if (urb->status!=0) {