]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
[media] media-device: use unsigned ints on some places
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 9 Sep 2015 11:23:51 +0000 (08:23 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 11 Jan 2016 14:19:02 +0000 (12:19 -0200)
commit9033b1a47038fdba388fc13613de23508dccb075
tree8e921e4d3ead2f10b9c5a9ccac505e0cb58be7e3
parent0b3b72df9018c0386293c2f529b91ed17448288a
[media] media-device: use unsigned ints on some places

The entity->num_pads are defined as u16. So, better to use an
unsigned int, as this prevents additional warnings when W=2
(or W=1 on some architectures).

The "i" counter at __media_device_get_topology() is also a
monotonic counter that should never be below zero. So,
make it unsigned too.

Suggested-by: Sakari Ailus <sakari.ailus@iki.fi>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/media-device.c