]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: pvrusb2: remove redundant NULL check
authorDaniil Dulov <d.dulov@aladdin.ru>
Sun, 11 Feb 2024 15:07:25 +0000 (07:07 -0800)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:19:49 +0000 (18:19 -0400)
commit1ff1f8c388f60a308b453b4762dcb81e726f1a3a
tree9a1b8faa4046b57322aee6943fb831d309864681
parent79159e7c485e16c2cccb740c3a8c01026e1710fa
media: pvrusb2: remove redundant NULL check

[ Upstream commit 95ac1210fb2753f968ebce0730d4fbc553c2a3dc ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/usb/pvrusb2/pvrusb2-v4l2.c