Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7544565rwi; Mon, 24 Oct 2022 16:31:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4q9tCRe1lLnVvBPKxUqMCJolFfLN8mcDBFHyjolVeG0lok7KC5E8v3pUFRlrh6OtSSz0a8 X-Received: by 2002:a17:902:7d87:b0:17f:9cd0:2e03 with SMTP id a7-20020a1709027d8700b0017f9cd02e03mr35835039plm.164.1666654305365; Mon, 24 Oct 2022 16:31:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666654305; cv=none; d=google.com; s=arc-20160816; b=CfZcPo9xbH+pDis+lOQ2DykUXi+knMHJakojjojZefTBHUC98MdaiCmMYgo3PbgkPX JiekDf0RmoHG7mS2pm+5Y7lZeTAnnfQfhhfSPp3kpTfotm2IEUfbTlQBN75FY/vh90tp 72xeVjgilRiuN178HKzfgSg4I5gsftYNLrPYnp9k1tMvdDc3KVJhix3ux/beQVwgOIO+ yNA9GI69tNQk1MsLOagx03Bq4PGlsGnbkJP9UiSJXjczuVkfVY0smAqXkytR7NcsCtuc jOSVEFDu0jqhGSJWQbSDMU2sRHcxhHz3X9hiPx72Nfh2TUoDdeu1HogaoBSzV7qdIovh jNjw== 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=cnqNra0lgbLAKch8eagvznAxGId4NWgXejGlEDMRG8I=; b=O6L+DR1iYKQ/oHJQAg8QSbYuspkEY78P4FNbrfabxF0XmmB3UxxxgvlB20E2H/GLxY zw1fl14PiLSUHGu9TgOpMeUgvFeLZpfr2gjmyWNf044PbY25rEKP6lI4Lo4GqU6/P5jJ J5/lSEjuqPtFqCOYcu/A7GqrCXrf6ti1sTIQBGNUfs++AGyKYfWf9F1LLGZtQ6NF3Iq9 ACxac2FBlUNRtF2uegzgt6AW0ZGfMnFwx6PORAtWN68ZpgStFZPjcKF4vfpeI9D3SXCv GGeD68I9HqWYcJQM/5bLDRp7Vf+Q5OaOidHh/hsI5MZkv0HIHajzbW1utlwrYzVOyS+w pqrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=lwrCsYSn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y13-20020a17090a474d00b0020a880cf1cbsi10092245pjg.134.2022.10.24.16.31.34; Mon, 24 Oct 2022 16:31:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=lwrCsYSn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229974AbiJXWT3 (ORCPT + 99 others); Mon, 24 Oct 2022 18:19:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230025AbiJXWS4 (ORCPT ); Mon, 24 Oct 2022 18:18:56 -0400 Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E88FD8F63; Mon, 24 Oct 2022 13:36:09 -0700 (PDT) Received: by mail-ej1-f51.google.com with SMTP id d26so7645571eje.10; Mon, 24 Oct 2022 13:36:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=cnqNra0lgbLAKch8eagvznAxGId4NWgXejGlEDMRG8I=; b=lwrCsYSnWfTQh15cwQ7ueF8f2lHMOTa+mOmouTY1ExaPRtPNGsHigtjtgstssCXaYm ancy3xk6f/FVT7y7wCLjlA6BsuUUXeHs4ZHkH4SuIUD7KjjDO3846Vc1R0rPTSumc61v LalmebgrfMGEjsqMPtBCY00khGcDmd7uTUYZNzbsyXfw6011zIQHliWjCMom/eIGcTUU ldtE2WbEj0OpKk06UYAkVBBhrUbOw1UONE7L3m1ucx1O9OA076r1vNBjPrjoUCV+wnK3 h//Ppkdlb5BCIptz5p+PM7yzrUGr+GOnMtaSUNN3xM3L67L+KB7CKZvV0Su+62ggUxKo 0ZuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cnqNra0lgbLAKch8eagvznAxGId4NWgXejGlEDMRG8I=; b=irVARwCh1dfxT78scbt8RywEu40i/ITAPz7bZ5XwNQ31UiXyW+ebXjAzNgwAgPh5M1 np50p2DsV0NOxz4BUwSXD2nPSOKKnx4YCBDacUD+kruifvVdIz3LCqgY0z6ZM3tU66xl 4tvvvDkhobvZZtjQOoBCKv7auL5MoZu3asWLQaS4d66FyEZ7MpDaj0/7UsBRqLBEdRi+ 0k8KijjSqRuw6dfcOUyFapmqX9zdVzkTkh4ziwOZkebXFwdzjbmEFd2O0jxBl71LAy/6 hjjJgwTRFKicZ1fJdmXz3JW9Jl1DaUNlFO2f054l1dd6khVQTAmaS8FaCf1Mu69zszv1 CKVQ== X-Gm-Message-State: ACrzQf1Jmf6XRlOyNiLqhK95OlSNVBWGDoblf2k6c1kUPtg9FDNqdOQh +U671U/CwoxqGZSnKIiYrfymghVVBHqeuw== X-Received: by 2002:a17:907:c03:b0:781:fd5a:c093 with SMTP id ga3-20020a1709070c0300b00781fd5ac093mr29229259ejc.89.1666642530469; Mon, 24 Oct 2022 13:15:30 -0700 (PDT) Received: from kista.localdomain (82-149-19-102.dynamic.telemach.net. [82.149.19.102]) by smtp.gmail.com with ESMTPSA id op7-20020a170906bce700b0073d638a7a89sm332023ejb.99.2022.10.24.13.15.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Oct 2022 13:15:30 -0700 (PDT) From: Jernej Skrabec To: mripard@kernel.org, paul.kocialkowski@bootlin.com Cc: mchehab@kernel.org, gregkh@linuxfoundation.org, wens@csie.org, samuel@sholland.org, hverkuil-cisco@xs4all.nl, linux-media@vger.kernel.org, linux-staging@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Jernej Skrabec Subject: [PATCH 01/11] media: cedrus: remove superfluous call Date: Mon, 24 Oct 2022 22:15:05 +0200 Message-Id: <20221024201515.34129-2-jernej.skrabec@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024201515.34129-1-jernej.skrabec@gmail.com> References: <20221024201515.34129-1-jernej.skrabec@gmail.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,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS 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: X-Mailing-List: linux-kernel@vger.kernel.org cedrus_try_fmt_vid_out() is called two times inside cedrus_s_fmt_vid_out(), but nothing changes between calls which would influence output format. Remove first call, which was added later. Signed-off-by: Jernej Skrabec --- drivers/staging/media/sunxi/cedrus/cedrus_video.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/staging/media/sunxi/cedrus/cedrus_video.c b/drivers/staging/media/sunxi/cedrus/cedrus_video.c index 33726175d980..1c3c1d080d31 100644 --- a/drivers/staging/media/sunxi/cedrus/cedrus_video.c +++ b/drivers/staging/media/sunxi/cedrus/cedrus_video.c @@ -309,10 +309,6 @@ static int cedrus_s_fmt_vid_out(struct file *file, void *priv, struct vb2_queue *peer_vq; int ret; - ret = cedrus_try_fmt_vid_out(file, priv, f); - if (ret) - return ret; - vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); /* * In order to support dynamic resolution change, -- 2.38.1