Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp248106rdg; Thu, 12 Oct 2023 04:48:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFIJBT9aohT6antOK5E6kINUwbgXv8vQQ7rmKKoXmFD9OhSjDxU353EG7d3+cDAmlBocGeU X-Received: by 2002:a05:6a20:1615:b0:157:877a:5f5e with SMTP id l21-20020a056a20161500b00157877a5f5emr24358457pzj.61.1697111338378; Thu, 12 Oct 2023 04:48:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697111338; cv=none; d=google.com; s=arc-20160816; b=IJ2owlY1hd6Y4gs3lcNVQuvyXliWCIVLCiodm0Wfo9meuo5Fc6ZnCNANyMPQ4mEXQD ShvqueEbgBGddqEQijh+7EOgnrw8HWmLYPSbIUrM4QqWpcUvk4nMls3OnjMYDL1zhfWo YPVMVo+AK1wG6r6tTzMItaqAs3GBy+aGwMI0Ld1b9rYWk98nh0MqYW53hDQF2pPKSKHh 71zbh895v0TCFe+jd6bAIyy6Nrc4Qv6/4xb+UAqQ82siwldvIxVJpRWWAiS30T1/vnyU IODPv+arLf65LJXAvkTUPwnNH3I83P9v5Nn6ka6oj9czNhg0YUw79OS6DNDZUf4JIghe ETYg== 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=YYWVDCyXuPvVNosQGrS3chyUS5Q0+9MLcvrGH3QK6j3MxWuq/fhW+W/lW41v4xr54d aQE5/ant91KHj0uaYKdCJlIPcdWUkKyIlLGprSxK1qEnHM30jC2GOpzFRD8OE3RsMvhs vRcbcRQG61DmAR6uSyiUZ1KRHOD6j5jInkPMHC9qMdyXSaDM2dXgAvAMSZeaVwjFRkxq 54Tl2eHJNIV8x0pITqHh+Eq2rBzKcqmgvLyzHnq/JESZvpMab0URYd+CotqlySRHH868 wU/OxLEetZAwsPjaVHksc4MEKiSBqFApa6j57BQA6yHpRJxhZwws6/VqTqNAtc2DQYYF YjlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=T6c2WzuJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id x8-20020a170902a38800b001bdf6eb05f2si1898654pla.227.2023.10.12.04.48.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 04:48:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=T6c2WzuJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id 874158374B96; Thu, 12 Oct 2023 04:48:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378907AbjJLLsR (ORCPT + 99 others); Thu, 12 Oct 2023 07:48:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378478AbjJLLrC (ORCPT ); Thu, 12 Oct 2023 07:47:02 -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 18C80E6; Thu, 12 Oct 2023 04:47:01 -0700 (PDT) Received: from benjamin-XPS-13-9310.. (unknown [IPv6:2a01:e0a:120:3210:7ae7:b86d:c19a:877e]) (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 75DBE6607358; Thu, 12 Oct 2023 12:46:59 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1697111219; bh=o2sVtoPPYvq8hM/qyihWIqN4hasDvFA4zhZmTyTxJEg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=T6c2WzuJOXCb7OrdeYtPepo+zhAeAHO7DQmDBSK27YLwAgt5567H3AuSCWnFDkmDB TWlA9tD0YKldYAFQ9s8W6zPZjlPYIGGIefPVnQCU1WYI4cR0U1C+FYSx+dxF4YY/Mp GBOHYgNGmEjgqwSYio7cVGKr6/uTEl6FfjUGEdkALNl+QfKuF3FuUnwJve3mOLXW0a Cg1dfBPwkLl3sYA3P6BftijFalxP/zcH3HCoxambTKLt+cHpb4NhfpwbBMCYVt4I6X vSVCksD3GdV3pWJEgjhxSr50uuBcgNLxRRz9/dq2Pa1JvEQrqOlLrEAX4OAdUwAf1n x+EQ+wHbkG5bw== 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 v11 19/56] media: dvb-core: Do not initialize twice queue num_buffer field Date: Thu, 12 Oct 2023 13:46:05 +0200 Message-Id: <20231012114642.19040-20-benjamin.gaignard@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231012114642.19040-1-benjamin.gaignard@collabora.com> References: <20231012114642.19040-1-benjamin.gaignard@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 morse.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 (morse.vger.email [0.0.0.0]); Thu, 12 Oct 2023 04:48:49 -0700 (PDT) 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; -- 2.39.2