Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 26092ffb authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab
Browse files

[media] DocBook: fix incorrect code example



The code said for (i = 0; i > 30; ++i) instead of i < 30.

Fix this and clean it up a bit at the same time.

Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 078c580c
Loading
Loading
Loading
Loading
+11 −11
Original line number Original line Diff line number Diff line
@@ -61,7 +61,7 @@ if (-1 == ioctl (fd, VIDIOC_G_FBUF, &amp;fbuf)) {
	exit(EXIT_FAILURE);
	exit(EXIT_FAILURE);
}
}


for (i = 0; i &gt; 30; ++i) {
for (i = 0; i &lt; 30; i++) {
	char dev_name[16];
	char dev_name[16];
	struct fb_fix_screeninfo si;
	struct fb_fix_screeninfo si;