Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1898938lqp; Tue, 16 Apr 2024 00:37:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWb9PdnbB2Ttx2kyf0EGeq/iAWscgmKMtgPRj0g2WNvLKYTsqzbyYOHrjo1ElfpfscP1mzxZgwktJZQF9hVtZ/YVSy+Pn5oa5I3AlgjAw== X-Google-Smtp-Source: AGHT+IHMCRk2o4pn4AtifPPxgkhOtj6XIRoC0hkmYjGIvCAOd/MIukG76dTKgyGigf9HJc3GE2xI X-Received: by 2002:a17:906:f598:b0:a52:5277:3aa7 with SMTP id cm24-20020a170906f59800b00a5252773aa7mr5497429ejd.22.1713253055849; Tue, 16 Apr 2024 00:37:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713253055; cv=pass; d=google.com; s=arc-20160816; b=DL2g6LGaR18ihaNhDA+c/hUqk/AUNSkFwWfcDsPuFj/dxy/+3/eJYHXUqh43p6K4P5 wimqq61QGaYJpU1AUwRK1rt34sVHzsMQzP1DeN7oybSGR9t2lyqWltlamg55ieFBPcD4 WnncFOrNfmWTBxjGnEcXrBbl6877Evdzi3QWf4ii4jx93O146tQndezfOkR06ubWpFJX yTwoTYYgvHFicMT0DVlNr/Oikx548QyBE1PXbzwolG17wGtwn/n9kV7IMezCCYi6QSSd 3DG7kYSEI8dNRr/trc7Ktcf8ESnG9bcCRm9rr14iOc5NDMEM9ssSJuQvy+lp0NfYRxpi t/gQ== 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=Vz5EFUG61C/PsBsUPlDK2q+AUqaXZYNi38q3WlwiS3E=; fh=uhZI0LFz2/DYE71zyqWx228n7qilORK8owhnJqmDIsA=; b=vTjsgwG0YkFkHJB0ggoJfiEvOArMUR8TsUnr2DjDfYAvCE3gTCIC7N6ScEY3eiZM6C cM9JFjEVt5JOyg0z4DDje7ynk3dLqg4H0j9SmQDVHCgngGMNiI+p18wnev/8yjWFGsnJ q61OMFRyahQ/RHqBKIsNJEwljqMeIioYYTkKImGfw4goKDKP38cHuT6wfm7tV7cHLHvB LdY4z/7EVxEkTJtZVXQMRm9dC8i/MjfHlFqtjOrrD/SupxAejVk0UAPkcaVvmuI8jS17 fOmmsaM5uo8Vi2+pm1c+EjUnqnlEFKEX1eIwQketdez5hJ9XBm+LBCT/UrClNJjazTgO 6+HA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b9+WlSdS; 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-146436-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146436-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id hq34-20020a1709073f2200b00a5236245285si4478213ejc.918.2024.04.16.00.37.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 00:37:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146436-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=@linaro.org header.s=google header.b=b9+WlSdS; 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-146436-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146436-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 693381F22782 for ; Tue, 16 Apr 2024 07:37:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EBCD484D3E; Tue, 16 Apr 2024 07:37:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="b9+WlSdS" Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (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 6923D71B50 for ; Tue, 16 Apr 2024 07:37:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713253043; cv=none; b=nmWI6JZQt8aKF/ot590ozgeMEbyy7WjBxFm57zHq4ZTkUxjAdVybU0+f4LPAyhEz4YEstYmGkCzaTwNug335CPk5s8D+QOtsFaB4VuMfOzKzzqK7MF6kqdqA27wlEOd2ejNBryRI3bs/nk19Fk6vd2jiBKeMsHzzp2Tpy9HBV8U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713253043; c=relaxed/simple; bh=BIpOJSTxOK0JfNqFwhleSJ0Efyt0sHPGszihSmkHs2A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Y40M+CWQf1oe6euKdU68vlrgXUDILpMXEqCTWv/Hn+gC925PenoYfl7RDDpHphlyTr5KLPaPy6EoS8WKH7jy9CATAjQvVVf+8P/2NPBgWEtQcoqkYfxOjj7mGCGpEbdKYz6d0ohkMggmN7zKJ5DQ0Ab/BsX5pQksc6JglS/H8YM= 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=b9+WlSdS; arc=none smtp.client-ip=209.85.218.53 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-f53.google.com with SMTP id a640c23a62f3a-a51a1c8d931so516666266b.0 for ; Tue, 16 Apr 2024 00:37:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713253039; x=1713857839; 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=Vz5EFUG61C/PsBsUPlDK2q+AUqaXZYNi38q3WlwiS3E=; b=b9+WlSdSiA5XyauSwQE5H9UMIrdQO+qgy9vXhMooxlkNWj7lPNWRENP1vRvJTZ48Jv Cmz3hPo4dfQoMFwERWiBfSnjJGHOf1O41S/J7g/ExXuusCXjX85bP8l1CfojFRt080Q+ Ebt18aRnezj5aZdTWSNNjdALJ97ZEO3hyXgqBJx9CwbgU1TxaTBFw9YySmRzVCXtz4lG ye9WtUzkRUFrAJjYUnTAXeSH+VnbhKKwZ4Z0+QM7cRMj9DiehaeGohhS8IB1DTtIxf9l rBH5F9j2PkVWOUDer8bH+oKBql3Vc0AyQH7Yq2qg9aztgmQ8nluh0roA5IGZN8dBWW2Y iAaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713253039; x=1713857839; 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=Vz5EFUG61C/PsBsUPlDK2q+AUqaXZYNi38q3WlwiS3E=; b=etjJYf+Gh3OYytbn5JExvGrB1oSxgWM4T0Iu9440kd7HuYIpJSC/DDPh0EJsTE2S5R GW7TTgDhBcn64b+zPbmDVAb+TPcOS7mWlMYsuy7x/4f33bjxlwmmGbo5b54e0X5elwMU NE1p9ED8ppkPDf7QAtA7Hv8P4TSgKmzyTHAV3xsC8LAz74FLK7GB/NdvRm8j00dxtnYX /7nxTYEb+yrkdm9YiKyyBaIYLnpn/V8HRG5YtpeOTWCKxN0gI9PtjouvFkiebg7C4/UK ZAacIN+1tKFqV4paT7uEBhXp6qfHgPoYA9v49dHBr4aIQNjzOw9X5xRra3CK8V+diNlH nYaA== X-Forwarded-Encrypted: i=1; AJvYcCVeN7pn0dU09pvoME8v5vGqO4dO5l59DdgxO2jpvD60U0ij4HWdxC41qYmDKw7eGdSgb/pl0fo5+gwTNnwfWm4ZAY8ZqQ52qqG9Strz X-Gm-Message-State: AOJu0YwEuGtULObOMBw0P/NThsoywdKmIy5xKRI0DkVMAu+x4WhRF0nc LLi2JS4Jrfqter988u3Cb7ArMfRuJA3Nws8X8D7i09reA/k1ArJHhcXWGPak3Vk= X-Received: by 2002:a17:906:3488:b0:a52:e86:ae62 with SMTP id g8-20020a170906348800b00a520e86ae62mr7767532ejb.54.1713253038496; Tue, 16 Apr 2024 00:37:18 -0700 (PDT) Received: from localhost ([102.222.70.76]) by smtp.gmail.com with ESMTPSA id gt43-20020a1709072dab00b00a5242ec4573sm4507206ejc.29.2024.04.16.00.37.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 00:37:18 -0700 (PDT) Date: Tue, 16 Apr 2024 10:37:14 +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 07/35] media: staging: sun6i-isp: Remove redundant printk Message-ID: References: <20240415-fix-cocci-v1-0-477afb23728b@chromium.org> <20240415-fix-cocci-v1-7-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-7-477afb23728b@chromium.org> On Mon, Apr 15, 2024 at 07:34:24PM +0000, Ricardo Ribalda wrote: > platform_get_irq() already prints an error for us. > > Found by cocci: > drivers/staging/media/sunxi/sun6i-isp/sun6i_isp.c:389:2-9: line 389 is redundant because platform_get_irq() already prints an error > > Signed-off-by: Ricardo Ribalda > --- > drivers/staging/media/sunxi/sun6i-isp/sun6i_isp.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/staging/media/sunxi/sun6i-isp/sun6i_isp.c b/drivers/staging/media/sunxi/sun6i-isp/sun6i_isp.c > index 5c0a45394cba..a6424fe7023b 100644 > --- a/drivers/staging/media/sunxi/sun6i-isp/sun6i_isp.c > +++ b/drivers/staging/media/sunxi/sun6i-isp/sun6i_isp.c > @@ -386,7 +386,6 @@ static int sun6i_isp_resources_setup(struct sun6i_isp_device *isp_dev, > > irq = platform_get_irq(platform_dev, 0); > if (irq < 0) { > - dev_err(dev, "failed to get interrupt\n"); > ret = -ENXIO; This is more fall out from when irq functions used to return zero (16 years ago). Instead of ret = -ENXIO, set ret = irq. regards, dan carpenter