media: pci: cx23855-video.c: remove duplicate argument in 'or'
authorDaniel W. S. Almeida <dwlsalmeida@gmail.com>
Fri, 7 Aug 2020 08:35:42 +0000 (10:35 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sat, 29 Aug 2020 06:03:03 +0000 (08:03 +0200)
Fix the following coccinelle report:

drivers/media/pci/cx23885/cx23885-video.c:639:24-44:
duplicated argument to & or |

V4L2_CAP_VBI_CAPTURE appears twice, remove it.

Found using - Coccinelle (http://coccinelle.lip6.fr)

Signed-off-by: Daniel W. S. Almeida <dwlsalmeida@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/pci/cx23885/cx23885-video.c

index 440d108..a380e09 100644 (file)
@@ -637,7 +637,7 @@ static int vidioc_querycap(struct file *file, void  *priv,
        sprintf(cap->bus_info, "PCIe:%s", pci_name(dev->pci));
        cap->capabilities = V4L2_CAP_READWRITE | V4L2_CAP_STREAMING |
                            V4L2_CAP_AUDIO | V4L2_CAP_VBI_CAPTURE |
-                           V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_VBI_CAPTURE |
+                           V4L2_CAP_VIDEO_CAPTURE |
                            V4L2_CAP_DEVICE_CAPS;
        switch (dev->board) { /* i2c device tuners */
        case CX23885_BOARD_HAUPPAUGE_HVR1265_K4: