summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Dulov <d.dulov@aladdin.ru>2024-02-11 18:07:25 +0300
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2024-02-16 13:46:33 +0300
commit95ac1210fb2753f968ebce0730d4fbc553c2a3dc (patch)
treee2c9b158e3d5096c0d1a3eeec646b8ca3a0c52ab
parent0b70530ee740861f4776ff724fcc25023df1799a (diff)
downloadlinux-95ac1210fb2753f968ebce0730d4fbc553c2a3dc.tar.xz
media: pvrusb2: remove redundant NULL check
Pointer dip->stream cannot be NULL due to a shift, thus remove redundant NULL check. Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: c74e0062684b ("V4L/DVB (5059): Pvrusb2: Be smarter about mode restoration") Signed-off-by: Daniil Dulov <d.dulov@aladdin.ru> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r--drivers/media/usb/pvrusb2/pvrusb2-v4l2.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/media/usb/pvrusb2/pvrusb2-v4l2.c b/drivers/media/usb/pvrusb2/pvrusb2-v4l2.c
index c04ab7258d64..d195bd6a2248 100644
--- a/drivers/media/usb/pvrusb2/pvrusb2-v4l2.c
+++ b/drivers/media/usb/pvrusb2/pvrusb2-v4l2.c
@@ -1198,11 +1198,6 @@ static void pvr2_v4l2_dev_init(struct pvr2_v4l2_dev *dip,
dip->minor_type = pvr2_v4l_type_video;
nr_ptr = video_nr;
caps |= V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_AUDIO;
- if (!dip->stream) {
- pr_err(KBUILD_MODNAME
- ": Failed to set up pvrusb2 v4l video dev due to missing stream instance\n");
- return;
- }
break;
case VFL_TYPE_VBI:
dip->config = pvr2_config_vbi;