[media] zoran: remove unnecessary memset
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 20 Jul 2015 13:18:18 +0000 (10:18 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 11 Aug 2015 09:59:28 +0000 (06:59 -0300)
There is no need to zero the v4l2_capability struct, the v4l2 core has done
that already.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/pci/zoran/zoran_driver.c

index 2b25d31..25cd18b 100644 (file)
@@ -1523,7 +1523,6 @@ static int zoran_querycap(struct file *file, void *__fh, struct v4l2_capability
        struct zoran_fh *fh = __fh;
        struct zoran *zr = fh->zr;
 
-       memset(cap, 0, sizeof(*cap));
        strncpy(cap->card, ZR_DEVNAME(zr), sizeof(cap->card)-1);
        strncpy(cap->driver, "zoran", sizeof(cap->driver)-1);
        snprintf(cap->bus_info, sizeof(cap->bus_info), "PCI:%s",