Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp520232lqt; Fri, 19 Apr 2024 02:51:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUcL+xI4fGfWnhrguWTedEjyRcStn0GHq7qC+ItY1pWjI1gKugHEQ9WhXPq2olV3qlyseSo46rxGsZavoIm9VqiAAV4lLc/3tT4+4YZCA== X-Google-Smtp-Source: AGHT+IGADo4ddwDk94A1KvvnrJenD8X/5yuYADE28KDYSY4PTHx7KbIg8iNQf6GCBwrjvweDVKxp X-Received: by 2002:ae9:e010:0:b0:78d:7861:f18a with SMTP id m16-20020ae9e010000000b0078d7861f18amr2668159qkk.16.1713520273835; Fri, 19 Apr 2024 02:51:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713520273; cv=pass; d=google.com; s=arc-20160816; b=O3P7Ka1S8HxJe7Gldlo8lkZqJowS2jtGvsk/BLVIls4gccYiM/gLcSDdvFIZnCV2rj ZzGz4vfca0pxBl7GhSIrzST3t4J+ftm7Zt8CwVkXRI3JiNjtvzF/5ihKlLDIlreXdep+ E3Bug47ghUTLUmt4m064ar9/XgkTQTuzfLEsjUH8klOqhqn8Bu5lJCcchBOqlEmVesld glxCmMC0oWn+Onn/ixPS/J4SNbGA4m9kU3XOD1v7vEEUgpXnoACc9oPWBP6dl08oDLiK Dj4lLafQ/uw2Nc6PkF0Cr1AAZfbYgSe+v/PNn4z71kGxRGmjoJgoXDZi9iQuXiUW4jJc CdbA== 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=LtYl9w0rOEhkj26cvWhCGa7iaXgSAClc12fCrbixCRY=; fh=Yz5gEP0LsksNOSYM6T7KlBdtgQzAxs/ZamzcvLNx8II=; b=TnojODcrSDdn4T9MCsg2KrXZGu0Vw2P1QF2vuJNIy3DugCN0XczGSqMymQy/m60nZq 5bMtT9z5rOZO9Fl9jiYUGAhqsOxA7s25jsmKSsZqgeypfcM0Enfo49k9c8Ogzv97BLeb ZSvH+gmqVii7zr3cpp8CwVcqND12JFVop6RFHbOfohh8xgPUqCYjPNmAWBr7/EFi+3Ig NwsJHsCkyUwWd1RmO82T4aKvRg1zV8idzrAy8MBiiK79ZJF2kKYpuepqRD1WpP63KM0K xSxEo2GEXpji8n9DLqEl0e6c2fO9OgoQlAwYYyF9XNPFsWT3CdGc/iumeNEtqlBMDcHf HOSw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=JRKywdq7; 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-151252-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151252-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id h5-20020a37de05000000b0078f04a252e0si3295844qkj.230.2024.04.19.02.51.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 02:51:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151252-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=JRKywdq7; 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-151252-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151252-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 6B3A81C21092 for ; Fri, 19 Apr 2024 09:51:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 76AD181737; Fri, 19 Apr 2024 09:49:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="JRKywdq7" Received: from mail-qk1-f174.google.com (mail-qk1-f174.google.com [209.85.222.174]) (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 467F67FBC7 for ; Fri, 19 Apr 2024 09:49:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713520170; cv=none; b=YfNVHHf/QUG984mBv1l2j6BoUb+7Exyy9vIU5chVf21GOOboLH/7CkFG4g7YzdoJ8K8tZan/SRGn80KGFaddpFD9xcCHfSFnJE+gOXG42bCtbq7hc+7WpuhmexSLZnCNsBufqFuRp+NeN6SNfV6vQJ/wqsEQe9sLewFWMnYwoQU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713520170; c=relaxed/simple; bh=RuxkwHpE4T4+RDbLbxVJFmdg2Ym7s4wlcnprbuxc08U=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Lb58XvJqERDSRTV7/odhYwEd4qVGeist4thHiCG9AgTuV/DvMit3BeKqA7omrnG431D0q55yGn2OTAeuajD26RgKWg2f34/tQX91LtAXVopTLSaouNEis/u5JM8l2+R+uOExMWQ5SMHsiJRTUZFwEjns2rJjHlglLCpK3YwrTX4= 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=JRKywdq7; arc=none smtp.client-ip=209.85.222.174 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-f174.google.com with SMTP id af79cd13be357-78edc3ad5fdso150400585a.0 for ; Fri, 19 Apr 2024 02:49:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1713520167; x=1714124967; 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=LtYl9w0rOEhkj26cvWhCGa7iaXgSAClc12fCrbixCRY=; b=JRKywdq7DzysSXFI7V2I7JJrLuiZesSiHSA3gjLktvZIiKo42ctcyf4xq+6s7JDwKP buvUd6z7FBGsRGgmIG4h0LJlukks1duyv+EeCZXErvV/ygzkxyznu9edQFMSZpyY5dhz uJmtRb1BQihl89Vct1lKVeoOmnotilqpT9GNI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713520167; x=1714124967; 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=LtYl9w0rOEhkj26cvWhCGa7iaXgSAClc12fCrbixCRY=; b=ZflHZ/xAFeVO3WCniY3H/tTgePjzzkkdaMnU8Rj4uZqznZ48z5aRVvttN8V3RQWM8P hW5QSYpu3y53/vxxnmDUFE1f8Fg4weGkkjc/09LBEc/x4/JaBoWYrMHa2IL2ZHVDV9lc o2sLMVlGvlZzjZiQ+a0+dNJWDKXo6b7ANigLBhfvYj5xU0SVcbEniNyItZZbeyGGSsNb pWOlpPzGrUg2ytUsi3xdggzbzc4Tw3Nywk3g3hPw2uNvsSKOFOGmLajRngXA4b9i66Sr fvBCKW9rh2X6+ZPZzSzZ6zkYAHxPYD2vAqPCZXYlTD7AhEnp7pHqU5nlO48XGj2Tk9HQ xGWw== X-Forwarded-Encrypted: i=1; AJvYcCUNxhqogE7zseL6mTTl6SsWvr5VZ7tSUC4/IM9VfhPDjJX8zYnQuMDoSu561z5ib6KYNwysVpI817rcM+MJXj96lGnXRoTRQs6ApGJT X-Gm-Message-State: AOJu0YyNxk+p+Icht1k3TOPRx7VniuS/juQZhdG9iqH0Iq0jIEnkAUnb cQ2783rdfDXqA4sq37EseTxLNyPY4oqSnDO3RqP/kFS7ts1XqHq7nvcDcLxRJw== X-Received: by 2002:a37:de0e:0:b0:78e:eb64:d91 with SMTP id h14-20020a37de0e000000b0078eeb640d91mr2763665qkj.1.1713520167230; Fri, 19 Apr 2024 02:49:27 -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.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 02:49:26 -0700 (PDT) From: Ricardo Ribalda Date: Fri, 19 Apr 2024 09:47:52 +0000 Subject: [PATCH v2 06/26] 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: <20240419-fix-cocci-v2-6-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 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 | 7 ++----- 1 file changed, 2 insertions(+), 5 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..4acc3b90d03a 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"); - return irq ? irq : -ENXIO; - } + if (irq < 0) + return irq; dcmipp->regs = devm_platform_get_and_ioremap_resource(pdev, 0, NULL); if (IS_ERR(dcmipp->regs)) { -- 2.44.0.769.g3c40516874-goog