Skip to content

Commit

Permalink
V4L/DVB: zoran: match parameter signedness of g_input_status
Browse files Browse the repository at this point in the history
The second parameter of g_input_status operation in <media/v4l2-subdev.h>
is unsigned so also call it with unsigned paramter.

This will remove the following sparse warning (see "make C=1"):
 * incorrect type in argument 2 (different signedness)
       expected unsigned int [usertype] *status
       got int *<noident>

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Márton Németh authored and Mauro Carvalho Chehab committed Feb 26, 2010
1 parent 26ee91e commit db1b726
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion drivers/media/video/zoran/zoran_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -1196,7 +1196,8 @@ zoran_reap_stat_com (struct zoran *zr)
static void zoran_restart(struct zoran *zr)
{
/* Now the stat_comm buffer is ready for restart */
int status = 0, mode;
unsigned int status = 0;
int mode;

if (zr->codec_mode == BUZ_MODE_MOTION_COMPRESS) {
decoder_call(zr, video, g_input_status, &status);
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/video/zoran/zoran_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1444,7 +1444,7 @@ zoran_set_norm (struct zoran *zr,
}

if (norm == V4L2_STD_ALL) {
int status = 0;
unsigned int status = 0;
v4l2_std_id std = 0;

decoder_call(zr, video, querystd, &std);
Expand Down

0 comments on commit db1b726

Please sign in to comment.