[media] v4l: omap4iss: Make loop counters unsigned where appropriate
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 3 Nov 2013 23:28:24 +0000 (20:28 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 3 Dec 2013 19:51:33 +0000 (17:51 -0200)
Loop counters that can only take positive values should be unsigned.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/media/omap4iss/iss.c

index 043a3f3..c7dffa6 100644 (file)
@@ -1290,7 +1290,8 @@ static int iss_probe(struct platform_device *pdev)
 {
        struct iss_platform_data *pdata = pdev->dev.platform_data;
        struct iss_device *iss;
-       int i, ret;
+       unsigned int i;
+       int ret;
 
        if (pdata == NULL)
                return -EINVAL;
@@ -1414,7 +1415,7 @@ error:
 static int iss_remove(struct platform_device *pdev)
 {
        struct iss_device *iss = platform_get_drvdata(pdev);
-       int i;
+       unsigned int i;
 
        iss_unregister_entities(iss);
        iss_cleanup_modules(iss);