Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp97175lqh; Mon, 6 May 2024 12:25:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV5wFo9lxV4Tzqa0hLRdO9R1y+i/lY2qeS/bUBxSUNyVdWXEoFYqYtG1qK0BZIMu+8XQ3s313gPNHGa2fKUq4UJIwql/aAui9NcTuXyXA== X-Google-Smtp-Source: AGHT+IFAHfGW3FKHPI3aY0kgFa09QCVnmGTr0AxoeuxmvBrVTAJAjFX1/pkBoT2+erP7ikNWU5tW X-Received: by 2002:a05:6a21:8cc6:b0:1a9:a820:c604 with SMTP id ta6-20020a056a218cc600b001a9a820c604mr15206046pzb.48.1715023557646; Mon, 06 May 2024 12:25:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715023557; cv=pass; d=google.com; s=arc-20160816; b=otFOGqixgZHY5lQDkFYhIjz/qBFi35VTQN+ESKj87/2zhegwtwN5q08fgnaEzugryA +hAzRCSWlmPJ1SoQiepEkyvdJNpSxXv46itMD1zw63Dou4F44L+KbN6p9lEaY/E+ICqH KMxZILg8paYs5hONhFYn+EhsEjQyi84ZadydTOmwmqZ/dtVKrdkp14HMHGgW17bJLo8N GXeeEumfsUlmHKliwY+twA3Z1zpvCxlGHMjXfaE0JTuXsYNIX8kxr+r+cQQnhasbALny 6kNrj4dZ11nk+To28cJH2wLLAxZPm+TB17yzV0T7GqGq3iXmDRwi5zVggizySMZm4Hfj aVlg== 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=raDFNcDQUrEtJLVjBh+B3qIrZSUwTfQ8a/Tp6m6/klY=; fh=MCiUb3w6yC//LY+KUMk7xk4dgbjW4+ZT947IT4dSLDY=; b=e0VdwLsxqzRMY4WcyheYFIhrKqkuVfS65tWFK7Evzen3QvdEZhMPK/FR3MJH0VweWA DFWhAWPT+hrm6WvZRzSd8sEEa0POiRcgTwxog3qMj1s/x0P2rT5hUFRTtQvTsk0X6lQz FsLljQmhdWjICaa6tvi+WiCAJF4K8K5kJ3RcYDsQ+iRdVWAYzpszlnnBZVXtAleHwlLX VTYMeo3LdbGylPGQxlKr9iI+LnUYXB37OOnyAvPGF39KqJgWIlBWcayeoaWZimSOS6jM oKoTW60tQST46ZVd8kmU8Exq+u2mh5UcfNR/h6H3kyxG0tdsqykyo8SU58LNcUaBFjnV J5YA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=KQaDgD0R; 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-170337-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170337-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id b11-20020a63cf4b000000b00606dd49d3b5si8926596pgj.803.2024.05.06.12.25.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 12:25:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170337-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=@chromium.org header.s=google header.b=KQaDgD0R; 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-170337-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170337-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 3DD25B2307D for ; Mon, 6 May 2024 19:25:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BC895159591; Mon, 6 May 2024 19:24:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="KQaDgD0R" Received: from mail-oi1-f178.google.com (mail-oi1-f178.google.com [209.85.167.178]) (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 8EAA31591FB for ; Mon, 6 May 2024 19:24:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715023491; cv=none; b=NJItf1ilIf32s2ENno88sO5Nb4dZhqJGRJECUYwrFuOZauLJAy9eP+xHwUwJ2fnqXRbwf+iSiCpnRJ5SxW6s9GeR15myFaRdi3iXKN+sDo9o1UgLKQOP4WWTiFRonZiiXDPNRNFHKSA95320MI9qvWVI7lTeg0Pa4z9aMf0B4VU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715023491; c=relaxed/simple; bh=2UHWC2bxvJRpPIbR8NMDLC+df/QxdRgc5rfe62kBZfA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=MoqPQZ0XRyFqyMO1W5ekNufy8cm1SR1tCNDK8Id3AvSD+7420XLrTmn/nfBDZl1eSVwGQXaYIesXVGDjihkNjwDWZEldxY0BGefToljUnr3EuVWbzjlYl9cuyOT7Uahiz7Lvx/p7qVRKfHm/uX2TFVXe4/e/bTEW8w6Rq0y1yDo= 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=KQaDgD0R; arc=none smtp.client-ip=209.85.167.178 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-oi1-f178.google.com with SMTP id 5614622812f47-3c97a4857a8so68505b6e.2 for ; Mon, 06 May 2024 12:24:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1715023490; x=1715628290; 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=raDFNcDQUrEtJLVjBh+B3qIrZSUwTfQ8a/Tp6m6/klY=; b=KQaDgD0RMrnKCLWYW/tQ40vUmqBXHTxVUikTQ2THRo4LQdbsAVTFw6q4b3VRAm+/h0 e33fBydjIJC8WLu++VdlUv7PvQFWgi86cUsAQT13hz719D6n8pro4vMGrYLkviy90M4C ZHLb9ZqrhE/S863I9aymXEytFU0sKm/j7td8U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715023490; x=1715628290; 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=raDFNcDQUrEtJLVjBh+B3qIrZSUwTfQ8a/Tp6m6/klY=; b=mAo87By+830yzIqRW18ZCxRCYqNa+zP1VoWyNfFtXRc4O2+5SJHQT5SyW7Jmldnz7G 3H5QN1KukzuciR9kcpEmsrxpVAD17kmRhdo0jAFKvbPUqRSFJoYtA8WiFkiYbFbJ8Yme bzhICdTDoUpvkNanOm0b306nQ+hoEbAZQ06CdSdt/3b0qVjLEStt4cxcOhEn5JAt/Xfz 9REnzgKLE4XLui+92uhV4NlfrYYX2VFFXMeiWyS94lr4ik/yuimXrD8folj40qjA5mtK 7hmmbEig4ypxN1twVv/EPAzpH0R1T/bRp47YSPfr5Krh7mABu3aHUJ9yR6SbqMyN84Vu KUjQ== X-Forwarded-Encrypted: i=1; AJvYcCX3V4CYI8dBtFG2bdo288AHuG8//If+xje9ur29ZxknFxVRwv39La7fBQX0vh3T9z3+W+jIijJ/VzbAI7ZbJeyv8TPUBVDLbYKli2BY X-Gm-Message-State: AOJu0YxLHt0Q0bhphHz7doSMU08C3yabwL+BWBGI8q1R8EE2OJsAhAyu AnnGDrxJSDCCGTd6fTR3Hx5x9uR8Ne7iAl/E+vUwr507kkhsIJcoYBNRBaTdcw== X-Received: by 2002:a05:6808:258:b0:3c9:6acd:c626 with SMTP id m24-20020a056808025800b003c96acdc626mr4930719oie.46.1715023489673; Mon, 06 May 2024 12:24:49 -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 ch9-20020a05622a40c900b00436e193f408sm5439870qtb.28.2024.05.06.12.24.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 12:24:48 -0700 (PDT) From: Ricardo Ribalda Date: Mon, 06 May 2024 19:24:47 +0000 Subject: [PATCH v2 2/2] media: bcm2835-unicam: Do not print error when irq not found 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: <20240506-fix-broad-v2-2-e6a2a5c0d609@chromium.org> References: <20240506-fix-broad-v2-0-e6a2a5c0d609@chromium.org> In-Reply-To: <20240506-fix-broad-v2-0-e6a2a5c0d609@chromium.org> To: Mauro Carvalho Chehab , Florian Fainelli , Broadcom internal kernel review list , Ray Jui , Scott Branden Cc: linux-media@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Hans Verkuil , Ricardo Ribalda , Laurent Pinchart X-Mailer: b4 0.12.4 platform_get_irq() already prints an error for us. Fix this cocci warning: drivers/media/platform/broadcom/bcm2835-unicam.c:2664:2-9: line 2664 is redundant because platform_get_irq() already prints an error Reviewed-by: Laurent Pinchart Signed-off-by: Ricardo Ribalda --- drivers/media/platform/broadcom/bcm2835-unicam.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/media/platform/broadcom/bcm2835-unicam.c b/drivers/media/platform/broadcom/bcm2835-unicam.c index 60c0fe956c58..0b2729bf4a36 100644 --- a/drivers/media/platform/broadcom/bcm2835-unicam.c +++ b/drivers/media/platform/broadcom/bcm2835-unicam.c @@ -2660,10 +2660,8 @@ static int unicam_probe(struct platform_device *pdev) } ret = platform_get_irq(pdev, 0); - if (ret < 0) { - dev_err(&pdev->dev, "No IRQ resource\n"); + if (ret < 0) goto err_unicam_put; - } ret = devm_request_irq(&pdev->dev, ret, unicam_isr, 0, "unicam_capture0", unicam); -- 2.45.0.rc1.225.g2a3ae87e7f-goog