From patchwork Mon Oct 24 20:15:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Jernej_=C5=A0krabec?= X-Patchwork-Id: 10348 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp682830wru; Mon, 24 Oct 2022 15:32:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4n7PHCrnWLaYOx3FgAaLziX0mtFWM+LneQ5hkxD5XudzGd42XNak5+a2vES06hKO6LcRTD X-Received: by 2002:a17:906:fe45:b0:788:15a5:7495 with SMTP id wz5-20020a170906fe4500b0078815a57495mr30023021ejb.633.1666650778291; Mon, 24 Oct 2022 15:32:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666650778; cv=none; d=google.com; s=arc-20160816; b=yfoHzi/vQiM8nogsqO6KqjAuXpUBnYlUpVRrGTV7EMSOg/23SK0WcZ1717yhN6gGUO 77PBB+h7We8uxySxYy5uL5/WsEooDU2BFzh2YtRjwbmqQAM08It79mSDLxULGrhp7lnL WtmPEfT6gUYj4rjbIMw427mgVUxViQJyLa1m6X6giJP7uzmH5Xn5Sk9kHIxDBEwUXLZN hE/4tlqydtrMWmOGi6jhsqHpiKALcn55R2Gx0QRqS4UE+eFljpcqEKAJcUgXsE9H4aQY Vb9iWtynAqyL56d2mGf+y4wY5/xoXJ+O7Ubg6E6J9xwcm6LarfOdX2Vbh+SkF4II1cIj C7LQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m5-20020a056402430500b0044ecd80f257si1122622edc.603.2022.10.24.15.32.34; Mon, 24 Oct 2022 15:32:58 -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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747610006641698453?= X-GMAIL-MSGID: =?utf-8?q?1747610006641698453?= 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 Acked-by: Paul Kocialkowski --- 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,