Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2567378lqp; Mon, 25 Mar 2024 02:54:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXuWiDYroDUdpf6aqASMAkjNZknVxenIv6KwAPv1lk/b3kQOOatmOt6aN968MjVe6nFF54EMRcdG31aLAkWaInHsspzaBqbk8POg9CYRQ== X-Google-Smtp-Source: AGHT+IHeqA/UXptv9kdfWtr9HT9vXjtaNUSMpZk6r5J6p9e5QetHM4Hy0X0E0+b3TeQkpZzJCAQY X-Received: by 2002:ac8:5d10:0:b0:431:397c:3e9e with SMTP id f16-20020ac85d10000000b00431397c3e9emr8497875qtx.40.1711360476881; Mon, 25 Mar 2024 02:54:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711360476; cv=pass; d=google.com; s=arc-20160816; b=AOUC5AHROWW/vyRCsOx1Tve2yOlyanKsrcXnKXPXGyrG4JxYk0h32ZNSWHmkWwtf7Y aFldw55n95b+qaQCBX0bnzbzq4Mwv07mA5xdKt64uj0L7dGljqeVs996gN3Dq3zodA9U pqdHWzZjohtVRE+JJRU5VH0sAvEKF2Qlj5y+p/o95PjWads3I+1k2FJU028UbRIieWJa 2oM16SWZ9pxF40m4lYNt9hFvNwui188dF1qhWac6byHU7TH3AG3YLr50div+bVTARtLI Ja68yvzSDBf3T3d84qEBGEnsVNv63GDqyRF8QaP7vYrtbv2uCbmpCxWYqaJ41x5FIs86 ZYoQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Z9Yor/YbeyEEzoi8rHgI8h+DW4+gCg4G1E0wDYy/7X4=; fh=4yftrWz4Cye0AGLnP1Q5VYayz020Nvtkc3evrRIWKzY=; b=ovSGGqtKbi1C2Gz5X7tbIt8Krd5B5rknxt6O6W+KBQra96JS75wnHZ5JNnrO+rWnPV DKWtoAGymq7mxtGnxvWc/qYjrmMFk8WdNxdyLI21mm/X94Ng4U31M1wvDrNOT56yugv/ FnkX1YFMA4WlM9e94NeihGN/+k9OgcpPR/NtXZuG/FaUqZ18636cq6sy5qkyzGRxROPB OayyTywoh0R8drJFER5fqIXhoUTTPTnxMn4uew8V/lznJE6333kAE/GoPrsgDRvbM8Sn hc1YdrLll6s82uRed8wfTvvr3eZr1dP8fgoJ1JbAWEchA3N0NBesYa8x5sva89O5yAUJ 3LAw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jod0NAwJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115960-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115960-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id v20-20020ac85794000000b00430cdbff8c5si5142038qta.50.2024.03.25.02.54.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 02:54:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-115960-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jod0NAwJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115960-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115960-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 98FB81C318D7 for ; Mon, 25 Mar 2024 09:54:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C2933268041; Mon, 25 Mar 2024 03:04:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jod0NAwJ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F23001FDA27; Sun, 24 Mar 2024 23:17:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711322224; cv=none; b=ZXBofWlTgjG79BdCwLvY4/tlx3xmjRrzajtlmgQw0kX4Kad/cmuevX8THMd4N8GXTfWgq2QRAfrV+gTZUjFjT5xuYtiOJSNKyBgDSRCZUoOxuiUlW/rOGQNqvSEdW/OFMVWjPg8XWJAI0hxbz4+iDmjb7ldUr2siRdUlrEMbos8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711322224; c=relaxed/simple; bh=lh1tWZ+Q5ip5maxsWS3cRTsoCijckQtevMH31uUa3aI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mxitt/lcznzeG8jDSC7l9PYrA5glans2je3uRaYVIH4uA1GUOxhAqxFB/wvbmBXm6NM4PaBklqeTIKfMBVFd78+LZIfOHZsocsLkibxZmfSREBSpTEKcYOetbjkVfbZg4e0yBqMDcpPhMnGMjzXFpFQYl1hbYfyhsDHw9EH+s0Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jod0NAwJ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3CD0DC433F1; Sun, 24 Mar 2024 23:17:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711322222; bh=lh1tWZ+Q5ip5maxsWS3cRTsoCijckQtevMH31uUa3aI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jod0NAwJiNEr3xWMEitMbiW8+MqN5qe5CCF4KGvaarJoa5VJdlBzd+3XC2l0NFi6+ yAB/ZPZy7xPsLkZweU8lakKMy0LLyRzZt6UoxCQogQeW+B/QI/llq1A5R0DKA+TTYe tR6ShrYqWmRv1UIZ4Y13IAo3LBr1DQjn0F0OnggbPYKfeUL3MVnAdCUFmArcDEcv+z ZdFgEkAWNw5GIQHQzNtsc2QkIt/M1SCF27MCnDNl1moIbOKKjAQoEj6o2r/kXYPpgA mdkeRKtqZN4QyOZ4MCpVA4l3W4JEKQCA1400XBuSbL7QlEe2BJ9aZckYLsdp/8MCnq jsIbq7bnN/ihA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Daniil Dulov , Hans Verkuil , Sasha Levin Subject: [PATCH 6.1 303/451] media: pvrusb2: remove redundant NULL check Date: Sun, 24 Mar 2024 19:09:39 -0400 Message-ID: <20240324231207.1351418-304-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324231207.1351418-1-sashal@kernel.org> References: <20240324231207.1351418-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Daniil Dulov [ 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 Signed-off-by: Hans Verkuil Signed-off-by: Sasha Levin --- drivers/media/usb/pvrusb2/pvrusb2-v4l2.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/media/usb/pvrusb2/pvrusb2-v4l2.c b/drivers/media/usb/pvrusb2/pvrusb2-v4l2.c index c04ab7258d645..d195bd6a2248b 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; -- 2.43.0