diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2015-07-20 16:18:18 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-08-11 12:59:28 +0300 |
commit | 160d75724ae7db78112bbdef447f1a7b0f40bdf4 (patch) | |
tree | b374d4653ad209878d635ac0e336525bf718d571 /drivers/media/pci | |
parent | 0a6b9b04dbe81d781720e077aea147805af0ee87 (diff) | |
download | linux-160d75724ae7db78112bbdef447f1a7b0f40bdf4.tar.xz |
[media] zoran: remove unnecessary memset
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>
Diffstat (limited to 'drivers/media/pci')
-rw-r--r-- | drivers/media/pci/zoran/zoran_driver.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/media/pci/zoran/zoran_driver.c b/drivers/media/pci/zoran/zoran_driver.c index 2b25d31c46f6..25cd18b15d31 100644 --- a/drivers/media/pci/zoran/zoran_driver.c +++ b/drivers/media/pci/zoran/zoran_driver.c @@ -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", |