Skip to content

Commit

Permalink
V4L/DVB (10710): zoran: cleanups in an attempt to make the source a b…
Browse files Browse the repository at this point in the history
…it more readable.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Mar 30, 2009
1 parent aff88bc commit 7f37cc9
Show file tree
Hide file tree
Showing 3 changed files with 184 additions and 233 deletions.
9 changes: 3 additions & 6 deletions drivers/media/video/zoran/zoran_card.c
Original file line number Diff line number Diff line change
Expand Up @@ -919,15 +919,12 @@ zoran_check_jpg_settings (struct zoran *zr,
err0++;
if (settings->img_x + settings->img_width > BUZ_MAX_WIDTH)
err0++;
if (settings->img_y + settings->img_height >
BUZ_MAX_HEIGHT / 2)
if (settings->img_y + settings->img_height > BUZ_MAX_HEIGHT / 2)
err0++;
if (settings->HorDcm && settings->VerDcm) {
if (settings->img_width %
(16 * settings->HorDcm) != 0)
if (settings->img_width % (16 * settings->HorDcm) != 0)
err0++;
if (settings->img_height %
(8 * settings->VerDcm) != 0)
if (settings->img_height % (8 * settings->VerDcm) != 0)
err0++;
}

Expand Down
Loading

0 comments on commit 7f37cc9

Please sign in to comment.