Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp520346lqt; Fri, 19 Apr 2024 02:51:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV5ZosByYjObMQzJQdRAguFx37wsXN8eVvWz64JZM0k0eGBLrMz8j7wkBLhTA79Q3opy7jnGEVq972yOEI83OH/bfXkFIkx/J0hU8UrvA== X-Google-Smtp-Source: AGHT+IEN+6gD9oVRZXoA1XvHZGLM5O4FomORmXMwonX5zuu9kSbLwlusEq+/j1/wxB9IzyPOXrB9 X-Received: by 2002:a17:906:4a92:b0:a55:6606:bbf7 with SMTP id x18-20020a1709064a9200b00a556606bbf7mr1127522eju.35.1713520292920; Fri, 19 Apr 2024 02:51:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713520292; cv=pass; d=google.com; s=arc-20160816; b=Wsci60TefWbyIjmjxYD56xYTIgX1c13LAZ7YyKPwEe97Gv9Duwh1E0EanKkqilLXPj PkvatotnSPGszcsqlQYsJo4vvosb3Yj4WZSKn6ZoxIpunDh3x5Cm8DRAZhjoCingPnig 85Crf4BqzhQUPn9kaRwOIRpFiWlw8jj4MkpsAdCWj/ctkMezQYZc+T52fBBhs/h209cT yLOKBMCdcVJJGwXlh+X5qYCIoebRPzwvCmbLjUB39SVHIn58AxT45jQFExSbMbhtLKW1 OtLIAnZyotyPV0PRWGCQu7Zk6bQfK1gQgsdCpM2QkcNSzSzqknyxpR711k5fU+AoCqhz bSBw== 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=/qUCWhD1zt8bKcdbs6yESnMSEdigGZ2fB7xO4uH5zQE=; fh=VU4Yh65haYtSk+3ccVWtLn4dgK3yTzyhzXzmulZFlC8=; b=Eg66NLH6nBWhCUXqzqbNJUlF+LrulZPA63Y4a6ZLMl9ge4pifm8Dbsz0WNMqGqY207 /2BSF0p5rW8LdAOPr0VfKp7ne+OrMMgmuGK9WfKdtmOmFTYH7/d4mxppx11lcXk+oZxQ MfdzEpOJPhOo4bDTDP8CX13aapHAJsZ7nlX/N0hzjF2em7om7zSawfFYa4rhkeoHU7xH xsx8/IAsakUWOKld0bkwQf5Ewbs76cKgBXco2dct2n8Et/jvom8HLBx2q1oxcBWmMEBq O4uWBwcsFzc7knM59O9eDl+FbEsTAcKgpM6r93VPGCRnf0h9gCQvgi9gSVaGwmJ6FRNb o7eQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=eIEQmzsB; 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-151253-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151253-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 w13-20020a170906184d00b00a51a9d5df12si1941826eje.345.2024.04.19.02.51.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 02:51:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151253-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=eIEQmzsB; 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-151253-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151253-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 A486B1F21B11 for ; Fri, 19 Apr 2024 09:51:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B742A823D9; Fri, 19 Apr 2024 09:49:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="eIEQmzsB" Received: from mail-qk1-f180.google.com (mail-qk1-f180.google.com [209.85.222.180]) (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 2F73880043 for ; Fri, 19 Apr 2024 09:49:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713520171; cv=none; b=NaXgthkKbVLAISlQv+NsH1pXAfxs5UJTNkSq+HsmpkaGhDMYBMH68W3l3nXQjKaUqzLVvPX17SZ8kjpk2c54YJikEkyrKrfyQaHvwN+U+cwPTY5aRssyRNf7GL0ExmTI9GE/iSpe/n+8Z+7hGwUGP1nxUy8kXRelfhyUpjhPaAQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713520171; c=relaxed/simple; bh=aO+3XsdBSRpzhoc7Fyjg5oVGDMNe8NmC+5ZKhCG0BJQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Lhdf/j1NQPvaiUikwVHuF4MLRR+FxZUtKXmwiWZjDx76R/b34PsjED9LpAkgeJKi1hlOUNEUf1hsz1oCTMAF3cLX8Nxrj6aX5yMVMshFauqlXjpjORMuPN/bdMsVXw9b9QkQ7uV3tsfQygW5mwSrL5+UINh2iWUxhb/sbLEMNz8= 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=eIEQmzsB; arc=none smtp.client-ip=209.85.222.180 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-f180.google.com with SMTP id af79cd13be357-78f049fefd5so120119585a.1 for ; Fri, 19 Apr 2024 02:49:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1713520168; x=1714124968; 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=/qUCWhD1zt8bKcdbs6yESnMSEdigGZ2fB7xO4uH5zQE=; b=eIEQmzsBC+7ua7Vk9VEqXJ/T/EjDN90xI8Nj7tQol8TtiEdulOEtLqGJdCoJV0OYk+ VoeFQifbG7wsvbqgxe7c48qYKj3ZKDcmv0MKb4a8Yz2Oe/fdObkQrUKxvaOxfBti+8Uh jymyjj5GRdxxr+eqRO7ErlD/MKKkLzjXpwgb0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713520168; x=1714124968; 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=/qUCWhD1zt8bKcdbs6yESnMSEdigGZ2fB7xO4uH5zQE=; b=c4UEz5TiYteNom/nz+bhmsLtrOHp15HQW+iMR+1Ml0vEzFC7Nvx1W91hRYXu5we3xv Jr8+gt0u5W6dPGFe/iUjUD9y8wuDInPZ7TzSHrpLhcCW2BL83lfOco9tz9r9T9TofKwb c50wPjRPt41Mj5MBhrPsgQigWhiRUm2xsvRxeZJVQjg/CbntT/NXASmZeRtA+2kum5Zh DIpoYLzZsV13+R2+0s/XqaMMLVma3pSx6I2ECMuzfkTTLJqbLMOGF8ZAFYbihVFLwEoi DUKQp5Yjqffcn21wiJIsfSsd9Bi9ipl7Fezd4OCG3sTknBzL6tC12Ei6unuC9EU7d8o2 nEsw== X-Forwarded-Encrypted: i=1; AJvYcCW3794asUIRz5xBCa3yyCwJQoTMhEV73ZFIJozKtu5QsksTvwvHbw/HQLotM85rROpa/1LLTnyXMrDLLwoPx1uHno3Aes5y8T10LJdy X-Gm-Message-State: AOJu0YzkWzF5qqg2LZsxAxbWxlXtURw2i6EwyXGQ6V3PLm8aKGyJG8mb Xi3QxrFsyQM0Kdb9LI7IvRz/ppUa7xt1NKm34CYsmhtKw1i7USYpNkPDbXw+0Q== X-Received: by 2002:a05:620a:4083:b0:78e:db2f:2726 with SMTP id f3-20020a05620a408300b0078edb2f2726mr1792928qko.51.1713520168153; Fri, 19 Apr 2024 02:49:28 -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 dt14-20020a05620a478e00b0078d735ca917sm1434532qkb.123.2024.04.19.02.49.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 02:49:27 -0700 (PDT) From: Ricardo Ribalda Date: Fri, 19 Apr 2024 09:47:53 +0000 Subject: [PATCH v2 07/26] media: staging: sun6i-isp: 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: <20240419-fix-cocci-v2-7-2119e692309c@chromium.org> References: <20240419-fix-cocci-v2-0-2119e692309c@chromium.org> In-Reply-To: <20240419-fix-cocci-v2-0-2119e692309c@chromium.org> To: Martin Tuma , Mauro Carvalho Chehab , Laurent Pinchart , 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 , Benjamin Mugnier , Sylvain Petinot , Stanimir Varbanov , Vikash Garodia , Bryan O'Donoghue , Bjorn Andersson , Konrad Dybcio 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 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 Acked-by: Jernej Skrabec Signed-off-by: Ricardo Ribalda --- drivers/staging/media/sunxi/sun6i-isp/sun6i_isp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/media/sunxi/sun6i-isp/sun6i_isp.c b/drivers/staging/media/sunxi/sun6i-isp/sun6i_isp.c index 5c0a45394cba..58f8ae92320d 100644 --- a/drivers/staging/media/sunxi/sun6i-isp/sun6i_isp.c +++ b/drivers/staging/media/sunxi/sun6i-isp/sun6i_isp.c @@ -386,8 +386,7 @@ 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; + ret = irq; goto error_clock_rate_exclusive; } -- 2.44.0.769.g3c40516874-goog