Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1650254lqp; Mon, 15 Apr 2024 12:37:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWN5FrH5ZsrkpStDWQcEpoMRrjnxip/KKvr0NwiJjN7ACLFjGMYhZPaX2XHyZlEHlbZvlTzRrdocpWuapnb0h0GwS3HmD7IUcnR5rSPyA== X-Google-Smtp-Source: AGHT+IFp6m0nJK4RiZxqtSh9G2gaU6+9YgLMsFYtfHhuWHjOBgEcb3uzIrhGsFThBah94QDlHdHw X-Received: by 2002:a50:a6dc:0:b0:56d:ed86:c6f4 with SMTP id f28-20020a50a6dc000000b0056ded86c6f4mr7416542edc.11.1713209864211; Mon, 15 Apr 2024 12:37:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713209864; cv=pass; d=google.com; s=arc-20160816; b=ljN3G13cvXzrwYk9oMWccjPKmmu4yMsH14UYWMpDkDIIZyxhjpqu/CeMJ4DYmpSFMu UAUWPy7MbdDvEPMk6KlB+nSIBQDy6UnLIMq2ezVo9HV1HYtSKtgLvuiyFHY40Q0UfOLN 3EaMvGPJ0FNZ462c5VsgTIwXfQRIPlZhQV8WIoa4aH1Q1/xnala4fWwMFVVMnAsab9Ok 9onXBBlh7A9UljIvSS3vCq+xSWTsK1+5/4PGloQgbU4G3sK1DkAp7hz3LCPo6HBGY+Qk LQKVsHlYkQUS+HU9GfLsVQj8JsCZHeBC2pTWp/ppzLSqEGiFKuFIdHZ/ZnYHr9nNxB0V yHpA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=8w49vqOwnRlIfNq1dtx4OWinIRfPHFawqCMqrawnhls=; fh=5/a8ulTzsmxhKHNF3k0tCeJONCNKOGzhEOb9TcmMy1A=; b=YXANnGCFQ/9Oeqd0GmRZR1Yc2i/ty0TKiAb/yuTjmFQ12lvfUvo7qM23/8Z3QVgkfC eYAZjVRIxBNdURcd2FvX6ZpJ10rNgmoQUDsRko9DFZizI/M4aWZZLCeZKS7mj39fbrN7 TC6Lm7QqXIqQiw4JZNS5WDicDeSDT/sPqN6XNW/ZLb2yDrevuaZibofCALv3po2lOKep px6Zo9Kc66BYBOTySAWH2L5w3xTUsy8yHOXlY0wBhfXudBRlyE0V8V96O1+097bS1sWd vneSATHmDbFoRr+9FVVwZv6sNyMTcpjS4lZEOd0yFsdwpyCy9vFSikK3gGnlHur69acM uKWA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="Eqs+/dL3"; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-145788-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145788-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id s22-20020a508d16000000b0056e73f4b8afsi4610272eds.570.2024.04.15.12.37.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 12:37:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145788-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="Eqs+/dL3"; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-145788-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145788-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C0B301F23C4D for ; Mon, 15 Apr 2024 19:37:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2484D15AD91; Mon, 15 Apr 2024 19:34:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="Eqs+/dL3" Received: from mail-qk1-f173.google.com (mail-qk1-f173.google.com [209.85.222.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8B8D8159919 for ; Mon, 15 Apr 2024 19:34:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713209676; cv=none; b=Bj+5qSEZmKRFH878/Nn81v9s5kdfrwM1ByLrMmQlUdW1sh6MUK17+ju+fcIbbWBg+kJZqMGmxTahdLyEpghAFO4xhE7v3U5NMqKi1IdmT2R2VncxqJbZgrxAccJC5rnwo4x4n7JNvcLW4heTieaNVfTz7voSuYWCbhil32dBHd0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713209676; c=relaxed/simple; bh=rbJ7o+aKZRgLkZZ5K/uX3oUw9BYyxclmpLca8K2IUdE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=VdbxJJX1eiNtjzPEh34tla4hWSI6D6lL0+yB2JwIr6zfwv2Q7uaR1neELUFRfMoCyJfOfITzNDhLoNLUZp5qbJOysPYp+7LXElqDNfaxfTurmMRCvx2PEyTcDJnSMVZ/vwJBzVZsWaT7L6LvQPjRUQgLKz9GFiWcevg9lY8PmgQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=Eqs+/dL3; arc=none smtp.client-ip=209.85.222.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-qk1-f173.google.com with SMTP id af79cd13be357-78d683c469dso371090685a.1 for ; Mon, 15 Apr 2024 12:34:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1713209673; x=1713814473; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=8w49vqOwnRlIfNq1dtx4OWinIRfPHFawqCMqrawnhls=; b=Eqs+/dL3TDsFUBwMF/AUQDmCgMliHatNPCIByiusLfOlLZNbQR6GtTgqKm0Tw9RCmM 3Bwp9mPeNo8X1s85Xp8+vlEyPCzczIl6qqG8xu98Ck6q5bD//5sd3wfy6naghVJxg5Tz uuu7haHqtV3ig8AW9SJmb/0CBXuz/mu6SHHXA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713209673; x=1713814473; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8w49vqOwnRlIfNq1dtx4OWinIRfPHFawqCMqrawnhls=; b=kOkvgRtvwafLyw/fNun0UElcpUa8T0fc9IMw+RdNYJuIARP6wiawDyvPSH0RiKYxZ4 cxv60AQdd1sUA6pqyOdeExeczFzrghiq0uuIOUtqRuJpEnFBdGrxi51QyHLf0/FdOkL+ 8yFmBP2zuIrx0/iKV6eZ8f8eoAU1uCwRnNVIgK/wPpJSXm2e4IBY2EGdbIwzppM3GWCe +eyDjHCGTjBrYxZFzl8IhlHzAv5KEhP6o6n2xDLiVvv0A4btzRztY9CnNcvp1CGWgxbf hEzofRCk3bf2AtHLYsEMdll3x8TUlfgXpNijLOZeWgnnq38j2iCM/wFsJsf5DXmrYy1L ipuA== X-Forwarded-Encrypted: i=1; AJvYcCWypLCR9s3h8vrDpcpK+PE7b/GdriW1BWZfFqsEEb8wMyM8mogSUkbo3u1pPLMX700udigz/dD4Bp/4rJgbJR4e16oXJHMgnMggL4Q7 X-Gm-Message-State: AOJu0YyFCCX2OFqj8WhfgFBbr/N4lx77lGX42j33bW69PI9XEli/+SHT aaROSCQwb96mRYMj+RDcKyGnAhdjQGvg0OhNyc43U0FTQGculENU0lw2HQSuCg== X-Received: by 2002:a05:620a:5e48:b0:78e:e7f8:a5e3 with SMTP id ya8-20020a05620a5e4800b0078ee7f8a5e3mr3707352qkn.52.1713209673334; Mon, 15 Apr 2024 12:34:33 -0700 (PDT) Received: from denia.c.googlers.com (114.152.245.35.bc.googleusercontent.com. [35.245.152.114]) by smtp.gmail.com with ESMTPSA id s26-20020ae9f71a000000b0078d3b54eb76sm6718055qkg.78.2024.04.15.12.34.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 12:34:33 -0700 (PDT) From: Ricardo Ribalda Date: Mon, 15 Apr 2024 19:34:23 +0000 Subject: [PATCH 06/35] media: stm32-dcmipp: Remove redundant printk Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240415-fix-cocci-v1-6-477afb23728b@chromium.org> References: <20240415-fix-cocci-v1-0-477afb23728b@chromium.org> In-Reply-To: <20240415-fix-cocci-v1-0-477afb23728b@chromium.org> To: Martin Tuma , Mauro Carvalho Chehab , Laurent Pinchart , Hans Verkuil , Hugues Fruchet , Alain Volmat , Maxime Coquelin , Alexandre Torgue , Paul Kocialkowski , Greg Kroah-Hartman , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Sakari Ailus , Thierry Reding , Jonathan Hunter , Sowjanya Komatineni , Luca Ceresoli , Matthias Brugger , AngeloGioacchino Del Regno , Hans Verkuil , Sergey Kozlov , Abylay Ospan , Ezequiel Garcia , Dmitry Osipenko , Stanimir Varbanov , Vikash Garodia , Bryan O'Donoghue , Bjorn Andersson , Konrad Dybcio , Benjamin Mugnier , Sylvain Petinot , Jacopo Mondi , Kieran Bingham , Laurent Pinchart , =?utf-8?q?Niklas_S=C3=B6derlund?= , Pavel Machek Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-staging@lists.linux.dev, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org, Ricardo Ribalda X-Mailer: b4 0.12.4 platform_get_irq() already prints an error message. Found by cocci: drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-core.c:444:3-10: line 444 is redundant because platform_get_irq() already prints an error Signed-off-by: Ricardo Ribalda --- drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-core.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-core.c b/drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-core.c index bce821eb71ce..c25027b0ca32 100644 --- a/drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-core.c +++ b/drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-core.c @@ -439,11 +439,8 @@ static int dcmipp_probe(struct platform_device *pdev) "Could not get reset control\n"); irq = platform_get_irq(pdev, 0); - if (irq <= 0) { - if (irq != -EPROBE_DEFER) - dev_err(&pdev->dev, "Could not get irq\n"); + if (irq <= 0) return irq ? irq : -ENXIO; - } dcmipp->regs = devm_platform_get_and_ioremap_resource(pdev, 0, NULL); if (IS_ERR(dcmipp->regs)) { -- 2.44.0.683.g7961c838ac-goog