Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2387636lqp; Sun, 24 Mar 2024 17:11:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWyw+QKM4w02EnW/EDaavhrpC5SK+Phbihvb9cCeWc+inMCe1JRSZZWuaj67xJAueXCnLyTMoQcKQocxwaCzUbARy+sjRwuinzgqc2kvA== X-Google-Smtp-Source: AGHT+IGZa/bqXJ/WNkxXTWjtohYbhT+I741WoMEAezgL/r454LvHR+yt0VkrdeILQUhDBYh8LuPH X-Received: by 2002:ac8:5856:0:b0:431:3474:5327 with SMTP id h22-20020ac85856000000b0043134745327mr6925736qth.19.1711325490516; Sun, 24 Mar 2024 17:11:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711325490; cv=pass; d=google.com; s=arc-20160816; b=uyirxqIaDLUV+gOjxv6gJVHQODchBeI8gBtm81pT1ESC++Z3ujELO5ONa6QHBFOFeY T71KHCejegOCboVdaCvJUv5DYBzKU/ORenxxJC4jKXWccyoWTlLXjd2YHOAYDksvVJC5 rMcuTqBVrLokrJRAcxoWZzZfZwRWnepdaVZEULIAK4ptfQC7aOnNT3D1bErIgvWDG1iu mY1wLaRXeaaaO59zJnvPXBRjhJ2D2m97Nf1rLiSXavCfNnGSaBgSCz40yLYlaFE3aiDZ Qef2Hs+a5bJfTJEnUPDRmAZ/USBJSp1bV9HHkZ+t6cJ7+bCf5uA7n3O14MkuaWHmlHS5 1GSw== 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=LwgetcsAGGlkJWqBONl8/peFGW43z/igxUjQ+jiTdEHD8lQhKNVLFaxKH6FwCA6CzL 7w8/Rz2oysjQH0ftEy5/Fr7Gc9bKZ9ZUs+KmLgoOrXW0Epg7o0HyQqZEJrQGeNiDBKHH GLom/3el5sHADMZ3vhLmA+vjrQN+sEc4cmuSSLOFwU3ScspNU2nl3UtW/OyEB75fdHTR 7Q9tAai0XByQ+AZ4BuYqa1xn2iCbqGrxhkISN3uLQd0yj1hHNYFkm/lyCo63M6sE3sdJ gWqwIkuCjU5chnbKie1T4CeaF0+9g6VApoKgmESZ2NTFIvVzRap0cmDUnEs5fLhu2WfM pGtQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UU+DogfM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113331-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113331-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 d1-20020a05622a100100b00431472bcab9si3158224qte.357.2024.03.24.17.11.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 17:11:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113331-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=UU+DogfM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113331-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113331-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 332151C239C5 for ; Mon, 25 Mar 2024 00:11:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 672B81966A0; Sun, 24 Mar 2024 22:42:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UU+DogfM" 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 7187919598E; Sun, 24 Mar 2024 22:42:12 +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=1711320132; cv=none; b=K/dV7f85zvJh0CB0v6c6H5I2wNGsRbuwyCsCS14wzYuRa2pIL4KouDGJ4JrHuJFSVp+eJF5KehT/ygyuMc/RPX+2xpEpIQbouCNOt5GeScTG1+r3BaTWYvBuOA1ETn5GPPY/5xUS8qohoii8Jm5NICqoduFAmHxArO5UVSSjF/4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320132; c=relaxed/simple; bh=lh1tWZ+Q5ip5maxsWS3cRTsoCijckQtevMH31uUa3aI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=I0cE2h6tag0IJpkmda0ZgopWiCeZa9NMtA1AFX4kzcAB2HquxdI9B/WkOH384WcvDwCVQVE8gttYF0g5hLmdsyaTWzTv/gTB2AnRf/z3XuoUYhuGomHvZkj6hAOJBP0FbpUodPAdSMMNlTgI/c2x+D6zY7yM1ArsFUPl+2rLfCw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UU+DogfM; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B1527C43394; Sun, 24 Mar 2024 22:42:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320132; bh=lh1tWZ+Q5ip5maxsWS3cRTsoCijckQtevMH31uUa3aI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UU+DogfMzs5yI8fL+6/M7hzKW5uJcARubNPTQOgGrxTPKlE+d09F+Vx2RCtc9Nj4P /ekEEaW12FxGu0DXNGC3q84JfmM+vdJxTA2Oeg2RwThy2GjKGyrhZSIn98uJfmL/hk h/m8Z9KQ6yOoYZxX9gYpdrjQ+z5jGmLsCxJfSEstVjKwn9Wgkc3sfL2k70uINn+rjn o/IQ3eP1JCHGuSOQs1TbrnGsGTXmu12SD1L5lm/dO2Ei+zz8v58RaoVZlTc0XeseOG cUnLD9CX3W/ms3zDO4ircQNNyNm6SWtdlyV+M2ssm8ZXwLmhgJN7Q3ZpCoRzW+VWTx 6tcBTwESdwizw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Daniil Dulov , Hans Verkuil , Sasha Levin Subject: [PATCH 6.8 440/715] media: pvrusb2: remove redundant NULL check Date: Sun, 24 Mar 2024 18:30:19 -0400 Message-ID: <20240324223455.1342824-441-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-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