From patchwork Tue Oct 17 14:47:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 154344 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp4188915vqb; Tue, 17 Oct 2023 07:52:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IExquvEbptuQ89R0mvrVOII7Ywpq7y3lFS1QJyO9MQnknBwTugKFF7jmd7HYfRFs2DczkP6 X-Received: by 2002:a17:90b:3510:b0:27d:6268:b75c with SMTP id ls16-20020a17090b351000b0027d6268b75cmr2586457pjb.4.1697554350644; Tue, 17 Oct 2023 07:52:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697554350; cv=none; d=google.com; s=arc-20160816; b=YDG63au1AWLwyEWNEUG6kXPbk37KJStj1tTah7lm5B3JZ+7icNrNR+dV/TNF/RVP4R 1Z5HU9SDyh0MeQhDp++2uKD6cDJrqB+CX2vk8o3mAcB8dPYGiAU7MLQvtIAXKCORH6J5 mF1ZUN2L7E7HnVhXSF0WpPIG4iAWfz3ed2TH2Aen+6w1CNA+Vwym3qPjO9fLRyqH5Pqz jBpD0Rno7tc6GnHaQb/ffOEivbljVB0Df4mqNXcO9iK9JTQgLotQO3me6RjBllX1OFXK vmGrsVeoi4h+zET8OF4SXN9dRQeI6XPEkFs/4gCPv9e4iEQZqI9mnTHNrSfXIs6aZG36 GK0g== 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=r9vsCDV3CizF7gYcWcB+lVrWVWt1LOTpFnBqlilEMKsYE0ngDcdFChEA9NSmuF9Uif qILXL8gdf6mq7hXmIKYX1ClP8Mc0rxwKer1wlUdYKLH4IdBnmdLnoMbatLURMpKTMZhP AL7R6WXm6d4Bl2E3P3WYA05CxhWagMEN+bAuA8Vhkzco+w8fmB8+T9kWpVZaP7UkEljd pH3if79u8zXXlnBvLVywvv8usXl0CR6UHPpbFirnzNlY6p78mmBv6TEojlH2lEE34X5I 443fcNEheZpyLf3HrOq4Rpfsw+iA0ZZaJp7Ihlmq3zQg06FQVRKmGtd0YcmFOigiokl3 Xklw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=O2BBSM9G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id x5-20020a654145000000b0057777451a91si1892261pgp.581.2023.10.17.07.52.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 07:52:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=O2BBSM9G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id BA6188076E77; Tue, 17 Oct 2023 07:52:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344111AbjJQOu2 (ORCPT + 20 others); Tue, 17 Oct 2023 10:50:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344214AbjJQOsY (ORCPT ); Tue, 17 Oct 2023 10:48:24 -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 CDB7B10B; Tue, 17 Oct 2023 07:48:14 -0700 (PDT) Received: from benjamin-XPS-13-9310.. (unknown [IPv6:2a01:e0a:120:3210:7205:da49:a7e8:59f8]) (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 2977B6607368; Tue, 17 Oct 2023 15:48:13 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1697554093; bh=o2sVtoPPYvq8hM/qyihWIqN4hasDvFA4zhZmTyTxJEg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=O2BBSM9GCVKdEGV1TQ9Vflkr2tQ8efFlyusbh2XdTZvNe1lpAXbmhuGgLJmTPcKwX S+Pgkf8oDCJfZAnMoNtFDODDcpz+85dhJTaj6OtP9ONPxqx4WFMJQh+0AzMKkGLkJB mA/nOI6wSBm0Cqcz36jHUOJWfEYEvkcphmDE8fQC+hR31qd7j203J/Ig4kzeTGpcln hZ0JF2jT67YlRLnBDu4a5zBe34D+d90mztRgnV3YOXclvPyABhYEvWA0sx2QcH98Zh T6SDlpmvsvpUZ5lMYySfDKbQ7sbAxGQ6bvSx9NT3Q3gBH62Pq59dwyTQ6N83WKvj8O /x+A2j4asGoKQ== From: Benjamin Gaignard 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 Subject: [PATCH v12 19/56] media: dvb-core: Do not initialize twice queue num_buffer field Date: Tue, 17 Oct 2023 16:47:19 +0200 Message-Id: <20231017144756.34719-20-benjamin.gaignard@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231017144756.34719-1-benjamin.gaignard@collabora.com> References: <20231017144756.34719-1-benjamin.gaignard@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 17 Oct 2023 07:52:17 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780014750969948990 X-GMAIL-MSGID: 1780014750969948990 The above memset already zeroed all the ctx fields, it is useless to do it here again. Signed-off-by: Benjamin Gaignard --- 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;