Message ID | 20231019125222.21370-20-benjamin.gaignard@collabora.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2010:b0:403:3b70:6f57 with SMTP id fe16csp359164vqb; Thu, 19 Oct 2023 05:53:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGw+0Y1AqjPLGrP1cATALybnjXldr8soeObKIPP+nGPmo2Nl0uyib3Da2Jx+u8RVxXHfYD+ X-Received: by 2002:a05:6a20:e124:b0:17b:830c:cb11 with SMTP id kr36-20020a056a20e12400b0017b830ccb11mr2488020pzb.14.1697720026855; Thu, 19 Oct 2023 05:53:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697720026; cv=none; d=google.com; s=arc-20160816; b=uB/eqYipjEkM7i6OvWtIkL47EbRJIx3E9Se9PEr5LWjeF4Gq94Gc//Pv4QzHikYTZ3 8urytZHsk2nrLuwyXXr+wEudJPJzq0Ve7llr6coTCOybWV2r7Gr2CHmyaYx/zfhhbGP9 ob8XmcTgRZBNwPH0WVlrZLy5v6WaYTEY+XkVO7bc8VRoLc/ng8NwiC8HhCI7yWpHUg1E NI7qUzEnUdVmcSbBr1meREoKrPLowydwSXwyBgqkmRnTLYzDI6GNwtKkZ/LzVzsBLUcD XuCqWLnenT+2ru/5axDdYDK9ZViRPsfU+6NRFnhgCEagprjOJtA/UGFvHX49Jzz5pTK3 IcDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=d+Zh7OhCiZiOOWKfbCvE9mpOVb6/vmByOpoeFDYFpv4=; fh=ceA81l8d2hZW6pWH7VE5TwJxtgXUzAubfWIMcikPA1M=; b=JisOZuxC55bK1m6swhsdvhuEN98VwbzG/yOnOCvWHzD/9CAXvKjJ0h1m+ZyWkZIXmh R51O6dy7gtd10hI61rK2H0kJON9vhGOV4XQiKadHi1F7Zfen7G/2hjXJzbdK9cfYn7Oh lIAUBNGkKx0Hs6scSV+DeiNNQWN2pJPh9hQ98/KaVRicSEbtfGURkaC6lsn2y90xJFXP ovBqQglWyiXS53BzChn4M9RhAR0vo75Pb0D325Lm7b//JLDJq2vHPWi6ck0VdKSAxV4Q tTmbkb6YpHR7P7aM4w7zvqzK2EGMIdICSZrspwt7fTQuVMvXUSvmB2ypwLirLgypEs0j 3jcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=bl48PpE5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id ei10-20020a17090ae54a00b002719ad11d97si2028254pjb.137.2023.10.19.05.53.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 05:53:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=bl48PpE5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id B6A31822D097; Thu, 19 Oct 2023 05:53:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345980AbjJSMxl (ORCPT <rfc822;lkml4gm@gmail.com> + 25 others); Thu, 19 Oct 2023 08:53:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345792AbjJSMwq (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 19 Oct 2023 08:52:46 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AA4718B; Thu, 19 Oct 2023 05:52:42 -0700 (PDT) Received: from benjamin-XPS-13-9310.. (unknown [IPv6:2a01:e0a:120:3210:ccea:1fb5:34eb:239b]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: benjamin.gaignard) by madras.collabora.co.uk (Postfix) with ESMTPSA id 71D976607346; Thu, 19 Oct 2023 13:52:40 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1697719960; bh=o2sVtoPPYvq8hM/qyihWIqN4hasDvFA4zhZmTyTxJEg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bl48PpE5NDZebqIf4S8TN181nqE+MoISdGxTxyrqH1RiuOGtwArSPEyyH+Xb+wkgh w1NycJrH9LIvWMg7PwRGd9GihTSnfiRc4PGFWJry7LTscvqtZESaCGELig/kOVYcyj Nh6uUaR1cXwVjScIWvKp/i/OBCX5rF+7dBeoTdy5HMkXBe61Ot/xLNU8W7oTnraubb GalWOifBsDNJJpxStBs7qTlt2qSs9wDlzU8G405PjI3FihAUKzb0Mix4XW5VNb+KzM LcU2jIyW6Pe9/1wOs/Kvm8EUlnDuiGXwVpNlCdFnFHMuLJmWRGyjVtHM37GsZ1wnqI P0qnzfaUxjQjQ== From: Benjamin Gaignard <benjamin.gaignard@collabora.com> To: mchehab@kernel.org, tfiga@chromium.org, m.szyprowski@samsung.com, ming.qian@nxp.com, ezequiel@vanguardiasur.com.ar, p.zabel@pengutronix.de, gregkh@linuxfoundation.org, hverkuil-cisco@xs4all.nl, nicolas.dufresne@collabora.com Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-staging@lists.linux.dev, kernel@collabora.com, Benjamin Gaignard <benjamin.gaignard@collabora.com> Subject: [PATCH v13 19/56] media: dvb-core: Do not initialize twice queue num_buffer field Date: Thu, 19 Oct 2023 14:51:45 +0200 Message-Id: <20231019125222.21370-20-benjamin.gaignard@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231019125222.21370-1-benjamin.gaignard@collabora.com> References: <20231019125222.21370-1-benjamin.gaignard@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 19 Oct 2023 05:53:45 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780188474751344628 X-GMAIL-MSGID: 1780188474751344628 |
Series |
Add DELETE_BUF ioctl
|
|
Commit Message
Benjamin Gaignard
Oct. 19, 2023, 12:51 p.m. UTC
The above memset already zeroed all the ctx fields, it is useless
to do it here again.
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
---
drivers/media/dvb-core/dvb_vb2.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/media/dvb-core/dvb_vb2.c b/drivers/media/dvb-core/dvb_vb2.c index 3a966fdf814c..a731b755a0b9 100644 --- a/drivers/media/dvb-core/dvb_vb2.c +++ b/drivers/media/dvb-core/dvb_vb2.c @@ -177,7 +177,6 @@ int dvb_vb2_init(struct dvb_vb2_ctx *ctx, const char *name, int nonblocking) q->ops = &dvb_vb2_qops; q->mem_ops = &vb2_vmalloc_memops; q->buf_ops = &dvb_vb2_buf_ops; - q->num_buffers = 0; ret = vb2_core_queue_init(q); if (ret) { ctx->state = DVB_VB2_STATE_NONE;