media: pvrusb2: remove redundant NULL check
[ Upstream commit95ac1210fb
] 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:c74e006268
("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Sasha Levin
parent
79159e7c48
commit
1ff1f8c388
@ -1198,11 +1198,6 @@ static void pvr2_v4l2_dev_init(struct pvr2_v4l2_dev *dip,
|
|||||||
dip->minor_type = pvr2_v4l_type_video;
|
dip->minor_type = pvr2_v4l_type_video;
|
||||||
nr_ptr = video_nr;
|
nr_ptr = video_nr;
|
||||||
caps |= V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_AUDIO;
|
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;
|
break;
|
||||||
case VFL_TYPE_VBI:
|
case VFL_TYPE_VBI:
|
||||||
dip->config = pvr2_config_vbi;
|
dip->config = pvr2_config_vbi;
|
||||||
|
Reference in New Issue
Block a user