Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1896665lqp; Tue, 16 Apr 2024 00:31:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUErrest12MI7Lbf7xIsfF0dPBwXWgCdbJa914z/Kn01yAsKjT20BNWbksPlnB5CcnFDFI28GYRzwd4K2+S5p82/Pr2XNyEpZLGOgzrqQ== X-Google-Smtp-Source: AGHT+IGYnYpBF0IigPh0SsDegPEETzUJrXEnIldPxagkT/JQkV1gYawAxJQ732chDNlpyC+hwEvv X-Received: by 2002:a05:6870:4728:b0:22e:72ff:acd4 with SMTP id b40-20020a056870472800b0022e72ffacd4mr15320193oaq.8.1713252686031; Tue, 16 Apr 2024 00:31:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713252685; cv=pass; d=google.com; s=arc-20160816; b=MvWV/mT9XrK6ZItIXiXy6qlONBdBu6XN8mC3QbnMDidYo8OSNou3yXMRp6CpH6JMvA Y29MHG41aV3wAh1WbEZ7xdR3e9UxQ5ajSs0SqWvLwm7cKeQO4PFH7R7LpAJ0bfho/GkC LPkj/bGrPpzGweVG51k+S89cAk0BR6a81k9MwHA/hwl7r+W1WaS2VpdeCh65EDLz/6CO gJlwkPeN8SIE2U5C65SAVFP9D1mJwS1Qs3u8IWADNL0TNNjQxzyeThkF/Ha9M2jpzwIU znbby+AmnyjQikVy17AlBpLb7hZnPImVQtmaKlxwQ81e9uRm/1FcssOiCO3FfX4XI82l Ljig== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=cQoXqxQGz5UdNS/uHt9iOu3c65OCBEQl1AjepevvRYw=; fh=Sq56OLYG6s3Tjy6oARhfcIDexV+Lf1QQu/n+J9te77M=; b=IlVkP7yhhN2kaoIlTJMgeDHwu4oqxZF8EcjAo7BCxfECLJJLmHr2IVhmwS5uzk4p6U usAfrcoLoalyXz2WpF5HEL62lcdOAJwuSoXGHt6TvLHshMRGeUtq/tWOgCMgux1R8mej Ktw9oX2/u+9iSxfuah8h/ljTTPlFOyRRfH+tMOwHc6mfrxpTcqCGRAfApspVBdHPKCIK v0uaVxWHTgFTQYgyLgj3v3xKXOqqBY26rwId5gOvYdqgEDDQn3860AFfU6iG2iI6tUP3 0urc3UCTCBXicTqQyBtmrWR100VMKs1AZ9gTvKUv1jGynA3sBgdQqnYv2BZ4m8wULe5C Jl6A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SNlf7vio; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-146429-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146429-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d8-20020a63ed08000000b005dc9617013bsi9119120pgi.33.2024.04.16.00.31.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 00:31:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146429-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SNlf7vio; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-146429-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146429-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id C389FB2204D for ; Tue, 16 Apr 2024 07:30:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DD88B78C68; Tue, 16 Apr 2024 07:30:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="SNlf7vio" Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (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 0A51C7D086 for ; Tue, 16 Apr 2024 07:30:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713252620; cv=none; b=deNbqjElZaixL4m+Lm3t9mg+hKKXv3uaCwoNJBTLXv4UjsWQxJ2ihdm49gig9vc5RLnJ6SFE5OzqToQVN3SujO/Weazw9ay0DV6lSMROlPYycFF6P+vi0RcYrV908UUNaqibmBHBgflfxdUTMMDRhKrVS4EUnL3IZZAwCiGZjqw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713252620; c=relaxed/simple; bh=3EBKV7AoYCxlJECmklFzoEXRovNanxjXalvsVOT4m+o=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iv4x+sMDO4kSiBxpWrmBX25m2Kd321mv9nIfYyCtt/0QDiy+BxWEVwk0fdLnzer6AaM8FDVbnRIiRefVkmOmcnSx8TpyAJNsx513bdnAF7pN45/Tl5ALjX5tDYyhXpDwKFRrGFkpN69u2qX6/zJ/V6nry1EkJHrs9pUEbe0xwVs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=SNlf7vio; arc=none smtp.client-ip=209.85.218.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-a4715991c32so515466866b.1 for ; Tue, 16 Apr 2024 00:30:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713252616; x=1713857416; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=cQoXqxQGz5UdNS/uHt9iOu3c65OCBEQl1AjepevvRYw=; b=SNlf7vioxt9kCwvhEUN8obQyhDYbHdl4mPQtUdgYuiGObRsj3s3lTmyk/rgfuO9C0b G/go3KPIiKXe8EL7p2wymeks0Ne2COByut5L6T4WRBNrmkwvDXUMfIYeCaaHBXelPe+z 6XNJdOsb275n+a2dt0ntwxe+TEOwv4IwBgUdks0IiqLlrWd85B3RoNpJazutUQIc1wxC sz1XqbKDXYN84YdAWzEWn0OrUHfuvgBavPzJU8YjCcZmbUNz/tnjrtDE94ylLfSPr6ei Po0ST2OC1kThPV2sUV4K3rGk8Lv/QKQdR9a41Wocb6oTxU35MJ+2E8qhC2dmJGK1n4IZ Rkiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713252616; x=1713857416; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=cQoXqxQGz5UdNS/uHt9iOu3c65OCBEQl1AjepevvRYw=; b=k2+0zQr3HqFYo6EULvsh90lUtBmHDqMJJgalIqEZsPBxFrBAPNRUqPnDQGGz61z5ch w+UHqCQz3IYmoiA4UnchG6ZjLBjNEWGJWO2kiDgUg95oJWmvWNEJioRIt4+KFj6VKl3f h81GVjCTOZmj+i2BFnTkyEDjLLHpblEPphXbXjVB4LOIdCHKPH/9QTmQs88brVKbuSoI hJtN3MMuwQogZt4dNLnLm4Rb3XH9/eSyvAqtbmzRZBYfNuqXA94z0LtfbnVHQUqS4jgY m+4LirFS3rOYw0RCIrSjTLYapx277sYH3vE0l9bTFMnoUKn83Hs1CuYcKMe3HcVPjPAG iidg== X-Forwarded-Encrypted: i=1; AJvYcCU1cCx8QuEXf9ekL6HQ6/AwZbTiusiornJSSUhjkKFSYqbtsAvEr0lTcUJEC6kQJm+7vB++DN9CQeCMQscfIE209lMG++53BASeA9YH X-Gm-Message-State: AOJu0Ywzh3fTYme8Mva4FwlIhjyv51FH3zmkgaeMlD1wOsBprTUkIU6u J7EJS8R9FAmB8Qwbr92TmVItLQzyHGbmC5MdxZ7rojviQgBmCUXd4QLTnGP26l8= X-Received: by 2002:a17:906:fd89:b0:a52:24b7:b4fc with SMTP id xa9-20020a170906fd8900b00a5224b7b4fcmr9643955ejb.72.1713252616011; Tue, 16 Apr 2024 00:30:16 -0700 (PDT) Received: from localhost ([102.222.70.76]) by smtp.gmail.com with ESMTPSA id h14-20020a1709070b0e00b00a518c69c4e3sm6421654ejl.23.2024.04.16.00.30.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 00:30:15 -0700 (PDT) Date: Tue, 16 Apr 2024 10:30:11 +0300 From: Dan Carpenter To: Ricardo Ribalda Cc: 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 , Niklas =?iso-8859-1?Q?S=F6derlund?= , Pavel Machek , 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 Subject: Re: [PATCH 06/35] media: stm32-dcmipp: Remove redundant printk Message-ID: References: <20240415-fix-cocci-v1-0-477afb23728b@chromium.org> <20240415-fix-cocci-v1-6-477afb23728b@chromium.org> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240415-fix-cocci-v1-6-477afb23728b@chromium.org> On Mon, Apr 15, 2024 at 07:34:23PM +0000, Ricardo Ribalda wrote: > 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; platform_get_irq() can never return zero so this should be written as: irq = platform_get_irq(pdev, 0); if (irq < 0) return irq; There is a comment next to platform_get_irq() which documents this. regards, dan carpenter