[media] v4l: omap4iss: Don't initialize fields to 0 manually
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:56 +0000 (17:51 -0200)
The iss_device structure is allocated with kzalloc, there's no need to
initialize its fields to 0 explicitly.

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 c7dffa6565647a722be8982ceccb80fa7377af7b..7d427d541fd3c8025ee06ccff8781220e4712b2c 100644 (file)
@@ -1306,7 +1306,6 @@ static int iss_probe(struct platform_device *pdev)
 
        iss->dev = &pdev->dev;
        iss->pdata = pdata;
-       iss->ref_count = 0;
 
        iss->raw_dmamask = DMA_BIT_MASK(32);
        iss->dev->dma_mask = &iss->raw_dmamask;