From mboxrd@z Thu Jan 1 00:00:00 1970 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 51C06271479; Mon, 13 Oct 2025 15:00:44 +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=1760367644; cv=none; b=Is13Q25X9kwYK2loLhcPuiG9q3cSTBP01rW4msF5Xb55i1R5WZaJXZSLgDquFVdXFisgEbBhV9qEPYXiLGLZhazltNGvvScaNjpAl+XBrUAFpLHY0Ij4KnnaawYw7Dm69pOZKRs4jAvmIx+mbrGYvvVXqmUo77hTo0v6YtA6jLU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760367644; c=relaxed/simple; bh=TThNX95KLHUfL6dHyd0h/BVBIwFf7CdGWaQlap5Dx3g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=HHmn9UM9Q7zVe4cq8loVzdai7HB2HX5fByMXceeHn0JeqbqScvOhhib+phW1SJxGQmK075PzzOpXU0iSTKs0c7LxOysMHvRwBpojjRLgGyiQCUA5KH2LABeUnS5rRfXHFXEvqnL7ZprrYRkfFbvqK8SzpabXD2VN5EcSpwu+uCk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pw/oIhzl; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="pw/oIhzl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D042CC4CEE7; Mon, 13 Oct 2025 15:00:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1760367644; bh=TThNX95KLHUfL6dHyd0h/BVBIwFf7CdGWaQlap5Dx3g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pw/oIhzleGuqGEi0gSzNRW/i2m5+PQ3WqO8o5XbwcudDRW6nY8SfCPzjBqxFUL39X +oeU+MTlsAExNIqvEdBlaSA7hFV2Z8zD0pche/uP4qrqGSOgRJ3h+PjLjc7Yl3eLn/ YYrhLFftKoFiWZjPKPxTPgUfxol83EP2mhSn5RHY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jacopo Mondi , Laurent Pinchart , Hans Verkuil , Sasha Levin Subject: [PATCH 6.6 066/196] media: zoran: Remove zoran_fh structure Date: Mon, 13 Oct 2025 16:44:17 +0200 Message-ID: <20251013144317.582843189@linuxfoundation.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251013144315.184275491@linuxfoundation.org> References: <20251013144315.184275491@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jacopo Mondi [ Upstream commit dc322d13cf417552b59e313e809a6da40b8b36ef ] The zoran_fh structure is a wrapper around v4l2_fh. Its usage has been mostly removed by commit 83f89a8bcbc3 ("media: zoran: convert to vb2"), but the structure stayed by mistake. It is now used in a single location, assigned from a void pointer and then recast to a void pointer, without being every accessed. Drop it. Fixes: 83f89a8bcbc3 ("media: zoran: convert to vb2") Signed-off-by: Jacopo Mondi Signed-off-by: Laurent Pinchart Signed-off-by: Hans Verkuil Signed-off-by: Sasha Levin --- drivers/media/pci/zoran/zoran.h | 6 ------ drivers/media/pci/zoran/zoran_driver.c | 3 +-- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/media/pci/zoran/zoran.h b/drivers/media/pci/zoran/zoran.h index 56340553b2823..63592c4f9ed8c 100644 --- a/drivers/media/pci/zoran/zoran.h +++ b/drivers/media/pci/zoran/zoran.h @@ -154,12 +154,6 @@ struct zoran_jpg_settings { struct zoran; -/* zoran_fh contains per-open() settings */ -struct zoran_fh { - struct v4l2_fh fh; - struct zoran *zr; -}; - struct card_info { enum card_type type; char name[32]; diff --git a/drivers/media/pci/zoran/zoran_driver.c b/drivers/media/pci/zoran/zoran_driver.c index fa672cc8bc678..feb39854a989e 100644 --- a/drivers/media/pci/zoran/zoran_driver.c +++ b/drivers/media/pci/zoran/zoran_driver.c @@ -511,12 +511,11 @@ static int zoran_s_fmt_vid_cap(struct file *file, void *__fh, struct v4l2_format *fmt) { struct zoran *zr = video_drvdata(file); - struct zoran_fh *fh = __fh; int i; int res = 0; if (fmt->fmt.pix.pixelformat == V4L2_PIX_FMT_MJPEG) - return zoran_s_fmt_vid_out(file, fh, fmt); + return zoran_s_fmt_vid_out(file, __fh, fmt); for (i = 0; i < NUM_FORMATS; i++) if (fmt->fmt.pix.pixelformat == zoran_formats[i].fourcc) -- 2.51.0