From patchwork Wed Mar 2 06:35:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yihao Han X-Patchwork-Id: 12765664 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 09E3BC433F5 for ; Wed, 2 Mar 2022 08:55:02 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2B73F10EE79; Wed, 2 Mar 2022 08:54:51 +0000 (UTC) Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2102.outbound.protection.outlook.com [40.107.255.102]) by gabe.freedesktop.org (Postfix) with ESMTPS id A38F410ED1E for ; Wed, 2 Mar 2022 06:36:29 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=emrQqYCjAl2KgCi0Ho26wFEqfPDrZikIHe87FwrAO6D5C2q+y8qGqY4iRVCrGTB5kjPR7kR/4+vot/+YNmqI2LPClPHh3ttPm6absPixTwdlW+1lQDYY8c/k4MQ+dobNgi+g7Wg3aJxhgmrm1tWKwH0TDeBBrQ8CiT7nLl960kA7EaH52M/gRUocXMO9IInPZQQUhpXFhiOjw8ad2BhpRAhZX9IZ4IX1kveObUQDNIdnI6A35Zqb3zb0rCfWf0xS+rzPVacaSv0p76Uvt09uzoi7NUOwRyxCoXnaEQ+2NEmrefYJWmUNH5hZNL5hxQ2zAiEFitZGbvlNvHyxm1Fx7Q== 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=ywHiMWYrwrhMHYWf+4KuP8kMK1uYxR0RQKVBCUUmUJk=; b=oJzWduZqBGmCnleMGzsx16sCYGvXqbmAAptCd8YpExymoaCUCJzJluEcdowNc4z6ouwh9dJpCDctqF4A0Nuz0/hEJ7VFcWua5k3ezMRnKaxDYgzOksUgXM+gmPNUB3LX141j8TCpUONgZgHqII/FItLZBJSGKQLwjLdiEdCAFxMAgHxtmGT1Czaka9XdXnRVBBc7FlO+4L1P43tXVKc40ZZdyq5jNDkpCqiPYKzU5sxJl55/PsdYmL1Xc+qbTx1ghZ1XYo8liOj7mEIRlLZLRJngztvmm5mX8/XFcl2Bavi9MGkSPrIDzR//W/RifOC26iIgSqN8/jpDjtvTcz+XEg== 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=ywHiMWYrwrhMHYWf+4KuP8kMK1uYxR0RQKVBCUUmUJk=; b=N7BJtFcw5m61f7zzOp/n0Bd+OD6qK4KRKC6UPLj3jevy8j+BDODDclwhBi3ryu6wjmFc2cvFbYN3mRw3Ur9xQh3rh8ZWaYYOWT7Kq4p8nv8Hvnvz1rdVUB7IJu4IhMjLRd0swlwlRl066k2MGZmTdNVauQEa08GxXnhhQBiYuds= 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 SL2PR06MB3212.apcprd06.prod.outlook.com (2603:1096:100:3b::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.14; Wed, 2 Mar 2022 06:36:26 +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.014; Wed, 2 Mar 2022 06:36:26 +0000 From: Yihao Han To: David Airlie , Daniel Vetter , Orson Zhai , Baolin Wang , Chunyan Zhang , Maarten Lankhorst , Kevin Tang , Yihao Han , Maxime Ripard , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/sprd: fix platform_get_irq.cocci warning Date: Tue, 1 Mar 2022 22:35:31 -0800 Message-Id: <20220302063606.6564-1-hanyihao@vivo.com> X-Mailer: git-send-email 2.17.1 X-ClientProxiedBy: HK2PR02CA0200.apcprd02.prod.outlook.com (2603:1096:201:20::12) 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: 549d8102-7c40-4acc-25dc-08d9fc16f9e9 X-MS-TrafficTypeDiagnostic: SL2PR06MB3212: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: EwBDHuOmx9obkB5hKXZvIFILKYurlUuih3mnZai67T8v70E+OYVnzk+/7ClhkAfdMal8hK9wehiDpGhyz76gsWfcNYSd+QEnIvsygoctEEfuxcGgXsnJBg3BF/LWOi44xjXdRqTC8PVaGSAKi/asv2EYmHs0dg6fgIT5EpTdifTxWAIFmwxdSq14yed3ra60pbCkl+7rRQoEa/9bQn1XtE0RhICozx3yHzysYBGEPGybQmlRacoP9G4MH48L2Uvz1mTP5pnL1wDUAbW/sfoiBqm7/AMt7pR5HT1+vE/IebWIbqTyVbhZ052gS++X8kulXlL4KXQF9vjGm3vX1o4kxNrZZx02mV2Ed8XbDLfEIa+wg4haV0kSHLeUepP5JBSGGFnb1rGg7Q+mlGThiw7YW2asiJAMlsqjiDt1YvqRWWlTZ4pqQKu7DfeYVxTOX7CurAUzEMCfCkGEX/gZVbLA5ucQCp6ao9OcbsieTSgrLbn7g8oljB6zmlHaAYVsNFtNFys9S1ClTsFnwcnEG1xSxfCX2jEJKym5k+1VrPkbZ1iPrAc3w0RUkfHhXDcz9V4MzF7GLb9UQVROLFCwQAvIT91qomTIaYvrpYxv2oBC02xDQz3oWDoKeeCyhvNq6i0vPTzekNGaIDQiVBM1DpXYhRpWwu5yOL3taA4ilZASkxw88Z2tjWF20awIUb2LPSr1QH9RHeEzPUtugwtn308HQsJjDEr8adfTzQCEMUrNQGw= 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)(83380400001)(6512007)(110136005)(5660300002)(38100700002)(38350700002)(6506007)(36756003)(6486002)(508600001)(107886003)(6666004)(1076003)(8676002)(4326008)(26005)(921005)(2906002)(316002)(52116002)(86362001)(7416002)(66946007)(8936002)(4744005)(66556008)(2616005)(66476007)(186003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: kH9/ACqJdkE1NFNjtJSkUkptnHOAheO7ErXQVk2dD3NAsWk9ALkYD+r6mk2mKMRhDe8sc3pAD9wky5yV9eHAmboobPL3prg5lugX0bB4rYPjSvtAUb1WoeduzSLd8pDYM0HbBXGQRmFfra1uh/iMp+FKPu9JcIcIf+xm858+qnPnb3QqK78dOzf5OSolm04+WWzbw9rIiy+D0F9Yb61yWspMo6DUb3/JVqlPOVzHXs3vFLRsYSoYIsc5tRs7OUfDuzi8i0ijO94bhQsJWaaQ76oV5L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ZTO8tUiAZgOXW365uKYWRuzt3rMrxJS5gRdb0Df/DFReezrO2hialQLq8H5AyTmfH0EXUZyHQWa1J28Z3cqd51eyvSWuua4obVLH5T6+QI+kuWyWqIlsCzOxGhqgbbeccqIG3SgirIzJ6CBnNCiXs3GmevyyjsvUvMUiCHiLcWyaGP08jko9JL5VOeBtadO8/nJlDFTd7IyVZ5VI+yVCbN1Kv9rax5j04ckcIdhpywL4i5h4KwlRM3O6ls0gEDFmLDiSo2dcKiZctQTJb7w= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 549d8102-7c40-4acc-25dc-08d9fc16f9e9 X-MS-Exchange-CrossTenant-AuthSource: TYZPR06MB4173.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Mar 2022 06:36:26.3640 (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: rUZdjpFEXi/ooR/wLZ1LYxJbgZHmMYR9Nkbgr/fR9uGIvOofXl29UgZJymDQt1DWBztDLK2Oi3Ybz1DrqJJvoA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SL2PR06MB3212 X-Mailman-Approved-At: Wed, 02 Mar 2022 08:54:41 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kernel@vivo.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 --- drivers/gpu/drm/sprd/sprd_dpu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/sprd/sprd_dpu.c b/drivers/gpu/drm/sprd/sprd_dpu.c index 06a3414ee43a..328ca56695cd 100644 --- a/drivers/gpu/drm/sprd/sprd_dpu.c +++ b/drivers/gpu/drm/sprd/sprd_dpu.c @@ -797,10 +797,8 @@ static int sprd_dpu_context_init(struct sprd_dpu *dpu, } ctx->irq = platform_get_irq(pdev, 0); - if (ctx->irq < 0) { - dev_err(dev, "failed to get dpu irq\n"); + if (ctx->irq < 0) return ctx->irq; - } /* disable and clear interrupts before register dpu IRQ. */ writel(0x00, ctx->base + REG_DPU_INT_EN);