From patchwork Fri Oct 18 14:24:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Ribalda X-Patchwork-Id: 13841876 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 93611D30011 for ; Fri, 18 Oct 2024 14:26:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:Message-Id: Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=U2B9vhc2SFVP3CT/mLHkci3az6bQEYsfmzgWk2Lo2Lw=; b=tk/AXFtg+P0JCF0bgvlbro85LI FYdJstSo4xesmXoXWfA3NrrIwGFqcX0pveJs5UH3BrnWS41YMYvDcQzRHaCzikDUD/+fRwoahBy50 Ih6eX4awxxjmODYhayvZU27qKY/3usVKX5k+eY69kA3hzWKS1bD5No0i0V8mh7MK7vfbO4YE0CcjZ I0tPP7G0QbRrJOiD5/3M5wqY32K0gJL2nFQ55PjahQoYYK1sko3epPpbPB1iLI56B5TAnvszIE760 yarQf6FzeUKNzBF4ESj8CbLQgS8poU/+uLGuaPAsnk+jYSYuOp1TzPVIUnObWX9gUCx9n0eSCh+xs qurNwWxw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t1nw3-000000012Mv-1vOl; Fri, 18 Oct 2024 14:26:35 +0000 Received: from mail-qt1-x829.google.com ([2607:f8b0:4864:20::829]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t1nua-0000000129m-09Jv for linux-arm-kernel@lists.infradead.org; Fri, 18 Oct 2024 14:25:05 +0000 Received: by mail-qt1-x829.google.com with SMTP id d75a77b69052e-460ad98b031so6361271cf.0 for ; Fri, 18 Oct 2024 07:25:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1729261502; x=1729866302; darn=lists.infradead.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=U2B9vhc2SFVP3CT/mLHkci3az6bQEYsfmzgWk2Lo2Lw=; b=YwXhQqPCVDF1qbLXNZA8L7NmXRxiTU55H67TtmVlugRoVglUgIMJlxE4W0ZUqD7Oqt 7LeVKyK20G2c7VZpOZCpsOzN2hm48FetgVM/VOoLpm4fGbE5GuHBRb/J844uCjZLN/Gn bNf2ucEwhv20ChFEYVarOtCcnS90dxTO04298= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729261502; x=1729866302; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=U2B9vhc2SFVP3CT/mLHkci3az6bQEYsfmzgWk2Lo2Lw=; b=nk8Oi+3krde0SJdF0BiVaTjtkS1vCurleIfQbnmn54yn8UjkCMGEtgDN6ZEyjoPNT/ WpBblauL2dFsdV7bAaLiu0+jt8HGu8t3W53E1u5xX9+3zyUcpac5JjdPQaMKtB0OSHNI t808FZN9XgsPLHrC2ZZAtMsswJXPF9LiJvqpAsLBl9PVTdyB3yqif213oyVqb4LSIy3R Hrc4u4rwxYOacTlmTHAkK33E+Ba4KxkiGC5bxIa1vgN1iiZaXuKLvEqTkf5RLOAhqhh9 dQbv849PNaQM6rXSBUHzkGp1cdg1uqDSsjgMM+4ssPSm9pryGJvf1FgyvFWJuuNHJ7lp x3wQ== X-Forwarded-Encrypted: i=1; AJvYcCWFq/PLvYKs/X7oM56yy69F9YzaYry0Kv3kNZuM54fMkguSEhMkZZEJ+5E75pPMnSqYlxSLgz01HBkzkwHguGQK@lists.infradead.org X-Gm-Message-State: AOJu0YzQe2r8iVkACy/iK8Fe9R8sqjrgHiCKNk+ayLTB5k7cPnK+mTE2 IC0/H0zYsZj3ukF0ZbDBrzKNcF2PCarnlr31TNdkP8XcwQQhu+i1ljR5QddQxGbeWDUx0sG2EEM = X-Google-Smtp-Source: AGHT+IHDGxra/LweNKvZFVWUD4hpitjKLmeEVaZjlfP7UeY0EwsgTk0wfCZVTGsM8eLhvrIywbSFWA== X-Received: by 2002:a05:622a:1790:b0:460:9cb8:9d84 with SMTP id d75a77b69052e-460aed5934fmr40485081cf.24.1729261501759; Fri, 18 Oct 2024 07:25:01 -0700 (PDT) Received: from denia.c.googlers.com (76.224.245.35.bc.googleusercontent.com. [35.245.224.76]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-460aea455f9sm7596101cf.64.2024.10.18.07.25.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Oct 2024 07:25:01 -0700 (PDT) From: Ricardo Ribalda Date: Fri, 18 Oct 2024 14:24:59 +0000 Subject: [PATCH] media: raspberrypi: Remove redundant "no IRQ" message MIME-Version: 1.0 Message-Id: <20241018-rpi-irq-cocci-v1-1-b597595e98e4@chromium.org> X-B4-Tracking: v=1; b=H4sIALpvEmcC/x3MQQqAIBBA0avErBtQEZKuEi1kmmo2WiNEIN49a fkW/1corMIF5qGC8iNFcuqw4wB0xnQwytYNzjhvjQ2ol6DojZSJBMMU2MfgODqC3lzKu7z/b1l b+wArjufeXwAAAA== To: Tomi Valkeinen , Raspberry Pi Kernel Maintenance , Mauro Carvalho Chehab , Florian Fainelli , Broadcom internal kernel review list Cc: linux-media@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Ricardo Ribalda X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241018_072504_083423_E4253F06 X-CRM114-Status: GOOD ( 11.91 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org platform_get_irq() already provides a error message. This fixes the following cocci error: drivers/media/platform/raspberrypi/rp1-cfe/cfe.c:2326:2-9: line 2326 is redundant because platform_get_irq() already prints an error Signed-off-by: Ricardo Ribalda Reviewed-by: Tomi Valkeinen --- drivers/media/platform/raspberrypi/rp1-cfe/cfe.c | 1 - 1 file changed, 1 deletion(-) --- base-commit: 698b6e3163bafd61e1b7d13572e2c42974ac85ec change-id: 20241018-rpi-irq-cocci-878e4a82ea2c Best regards, diff --git a/drivers/media/platform/raspberrypi/rp1-cfe/cfe.c b/drivers/media/platform/raspberrypi/rp1-cfe/cfe.c index 045910de6c57..4e99cccd9a20 100644 --- a/drivers/media/platform/raspberrypi/rp1-cfe/cfe.c +++ b/drivers/media/platform/raspberrypi/rp1-cfe/cfe.c @@ -2323,7 +2323,6 @@ static int cfe_probe(struct platform_device *pdev) ret = platform_get_irq(pdev, 0); if (ret <= 0) { - dev_err(&pdev->dev, "No IRQ resource\n"); ret = -EINVAL; goto err_cfe_put; }