From patchwork Thu Mar 10 07:40:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yihao Han X-Patchwork-Id: 12776002 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 A707CC433F5 for ; Thu, 10 Mar 2022 07:41:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To: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=awGtVdbLNhxtow/HKENMy95Rep4r+uL75dJV6lOglnM=; b=PEW0otH+PQT1p5 X6QppIVkJWeZOmOU3IhIeGqPE4JYwW6mxH319Hwkru4e2M4c3TX3HnvYU69uJwAYhrR6/FBne5Bl5 gIzulKko/LpDWVojmzQv3n9oD4BScEsk+cs1zyq6pFqmNBWuCSHy5HBxszYtzJlojN1NOKcDtwOoF iVJmT0GV1njAFLu3kCfUsj6epVhGC1ly3irVyZrIGQQxk0iPLg+ep/P79aWt0Y0ghf2b9X8P0tOvT 8CUu9+qPu5oT4iJxktS4UPHzK49WCHjgsu7mtWfA0uTkvg9mQTDHw+7AUUBkGb/DzZMrD3kCSYr47 MpdJH5zf9pm+aU3YlVQg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nSDQZ-00BmeT-MD; Thu, 10 Mar 2022 07:41:39 +0000 Received: from mail-psaapc01on20716.outbound.protection.outlook.com ([2a01:111:f400:feae::716] helo=APC01-PSA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nSDQN-00Bmcw-Sw; Thu, 10 Mar 2022 07:41:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GulxdkxOVW8qyjEaH0ytvi2ILTsb2fe3HtsCr7QVIDhgpcqsdcUYLMjEG/O7O4rHReDOuqnDbTPZu/hat8SM/qyT9I6woA2Vr7PLZf9vulfLUqB6hhkm8D1GG+ThGq5mRQ/VR8VWU2zkrNTpy855DdX3B9Ubjh6a1K4eqvXc92m4X/219k0D7dy4aNkAnTyIsmvEjpk63c0RWOwGWh8+Zn4DppVx/Vv/Y1Xch7VwDhvFEhME0ijbljVsUIeTY/fDp9lh5ZjGj9AnoMGp4QH7S1eWfW905/t61OWQYIpCurCppqgxjlwbNxaIyCAobZ+z5b1ZmWE4FtLKASs3rLPVTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=0Lv57ZQDeEd80m+wSsrn+YVvcuHhkUv4T1KlyWmNOI8=; b=WkgR9fMB6pQOeOSeYgwJNUKGOYR3vsJTcGRRsq5puMv+QXNrchWlJBPHmbTEJ/lfjME+oY5Vl9c0Jt4XVR8LBe1aim+RKAEYbFe6LMJVO8ut/7q0KIddNwFdrxhUuQpFceg9fwslsSOr1D++PdMymujQQdKHyiTuZSC4T/MHPpueWdQCyr0T5dq3JPWKtfNN3xVYmwIkGyh9ox4dnKvhoNz8IwGBoODIbmseS4+2k7VKwSTUHJHw9Kbg8DufT+jiaPdFRKg2vqc0VWk0BMzuEKF7u8bZ6BygOMWvvofLcWNauK+mcn843PpaFCw/FjN7LhpGFLD/olkues6rh8t6xQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo0.onmicrosoft.com; s=selector2-vivo0-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0Lv57ZQDeEd80m+wSsrn+YVvcuHhkUv4T1KlyWmNOI8=; b=Bvx0giKaaVrOkcnE5RWHFqh+ukYBGFDLE2zVO8IOusyJ7gBkX8gDCQdGEcpLY/u9FiC+NDWjfV9mEEuqD1Z6tqNNureO1g0SbJzJG5l80BZ23/hzsN2pRU4dOVDpvFjde8mZxzQYQbFTy04xClpzFVobRbuVVJg+tuwnw8krCRs= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from TYZPR06MB4173.apcprd06.prod.outlook.com (2603:1096:400:26::14) by SG2PR06MB3063.apcprd06.prod.outlook.com (2603:1096:4:6b::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.17; Thu, 10 Mar 2022 07:41:15 +0000 Received: from TYZPR06MB4173.apcprd06.prod.outlook.com ([fe80::30ce:609e:c8e8:8a06]) by TYZPR06MB4173.apcprd06.prod.outlook.com ([fe80::30ce:609e:c8e8:8a06%4]) with mapi id 15.20.5038.027; Thu, 10 Mar 2022 07:41:14 +0000 From: Yihao Han To: Sean Young , Mauro Carvalho Chehab , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Cc: kernel@vivo.com, Yihao Han Subject: [PATCH] media: meson-ir-tx: fix platform_get_irq.cocci warning Date: Wed, 9 Mar 2022 23:40:59 -0800 Message-Id: <20220310074059.12269-1-hanyihao@vivo.com> X-Mailer: git-send-email 2.17.1 X-ClientProxiedBy: SG2PR03CA0115.apcprd03.prod.outlook.com (2603:1096:4:91::19) To TYZPR06MB4173.apcprd06.prod.outlook.com (2603:1096:400:26::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3fc8955c-aa1d-4ee8-7235-08da02695af8 X-MS-TrafficTypeDiagnostic: SG2PR06MB3063:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: EGQlZ8iNfTTUOzmyrHQ/FKgJf8kEmIc/+vIGrsuxIrZmaZBy7Vl3/n8+o7Uv9tMHAQte/sTmZEH0BPZQWzyhaRaLqn+M2thChM7fAFBUxWwcUwQBlonwOBGF4lHzAw35CGMTllLS+9S1I1SavAdb0c8AB52OO/btmfHDcp89+9cre9IYf8DzgII/BggJMFEzZzB9UmdA4hjo2Rw0vd9ZkccAtGvyG6q+yIPxaLJQgqXGn8/qzW+GrKBHNRUAjEpMCLLJl6PnziOHZ8iwmgFN319K0bJdNmtKJ3mchNv5/xV3RzQ5jT/fLnGCClxMPmzKDWP+q45di2gse+jQo+CdkDBWa6PLXFVvxHXlBzhrt7FmD1BPFUUtsy9SsQGebcXboribUDVZG3e0g2UDKaXYSgBJB8QfSNVrEMenDFjm1ksJkvVtdzhr4VOXH2aMKtDT7Bnaqoa6GV/zbHGVyEo6riBJ4szCwnRITd4C9t7gzdmOfY+RPumydNGSj3WbasV3kOgGJq6imo5b1DnEOntWj+ECmVRB1XlerGJngh0ZxqaFbL2M89dDDE13vzmYS8JeBSw46vdrAvdzNnMbMv10un1hlXsJbXoJ54oU5ne8vMYH+0XvPfw5gcumZNUo4MrrHRM+xbC8Q0gLGWlfImLZHQ1359Ild9jOSgMLhUAMWjaKyyqrDYEh9W4jP8ve7yuF/bdMiNbb1H8ttRjhSUhobk38tO/D1QYkDisg+g2MZ1o= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:TYZPR06MB4173.apcprd06.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(2616005)(2906002)(186003)(26005)(52116002)(6506007)(6512007)(83380400001)(508600001)(6486002)(86362001)(316002)(921005)(6666004)(110136005)(66556008)(4744005)(66476007)(38350700002)(7416002)(107886003)(8676002)(8936002)(66946007)(36756003)(5660300002)(38100700002)(4326008)(1076003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 2CejvFRXL5cwqbH9fQRwOrFcN5cxTHbS2yaraxqmz8Dh/M+UZ/vVbIMBE6zpQPRkJQ3pEndBo/6us28oOWfcjmczaLnHOXIbrQ8fonX4RSkXmTI+MA4TnxVfD6UEEfDcTB6qcLljQcKIydS/XmHF8tdGYp7ntBSwtMgPy1hfc+WcgkGkaXOnJCK4ial+MBaX08RLu/UQIGIJ77GOQmebP9IvLNBdilmjaeNMbhYUq7P/nnRioOyUk2O8leSXLvXjFP9uyhwo7oGuD6F6suA4w48ocCmjfVwYnX2x+SB5op379RizNriofgGIUqlMIuJ9Y+mV5ZXpgb/ev6hSkNIKCqOifbctsKGWx1J+qLk7Mm/WutejDXEaH7CycwZVw/uLaI74ka+nMfZFQaywH5R5+UgLzrJlvk4pXCY+jQTcB9Yea1vKev6gYB+mFIE+uy7j8QNOvRNM8WwU+EsPW+DCRRgpDpHL+7PHyaTakvToO8/ftbiuAdWERHZejWAj93aACXPp2n81bTBDdiO1n8QaHUZFB169t7r5qp0W39NYa6W3r9kxBaqIb4plYX8S8JyzU8gcLtyL78pcGmEPiLwrqKEta8tuAE6Db0T5MVyBaOF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ee8-7235-08da02695af8 X-MS-Exchange-CrossTenant-AuthSource: TYZPR06MB4173.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Mar 2022 07:41:14.9155 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: /XWdjKwXd3cGs2J9DxkHJBwkRNcPE35n52GOMYq6xskWnfvmIWBsoNMJG0blvQd5bUq7KFSkyNFrojBvn3Ju3A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR06MB3063 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220309_234127_946150_2EE16C48 X-CRM114-Status: UNSURE ( 8.07 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@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-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Remove dev_err() messages after platform_get_irq*() failures. platform_get_irq() already prints an error. Generated by: scripts/coccinelle/api/platform_get_irq.cocci Signed-off-by: Yihao Han Reviewed-by: Neil Armstrong --- drivers/media/rc/meson-ir-tx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/media/rc/meson-ir-tx.c b/drivers/media/rc/meson-ir-tx.c index 63e1dbf0a4e9..abdb62b16e98 100644 --- a/drivers/media/rc/meson-ir-tx.c +++ b/drivers/media/rc/meson-ir-tx.c @@ -323,10 +323,8 @@ static int __init meson_irtx_probe(struct platform_device *pdev) return PTR_ERR(ir->reg_base); irq = platform_get_irq(pdev, 0); - if (irq < 0) { - dev_err(dev, "no irq resource found\n"); + if (irq < 0) return -ENODEV; - } ir->dev = dev; ir->carrier = MIRTX_DEFAULT_CARRIER;