From patchwork Wed May 4 16:49:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guo Zhengkui X-Patchwork-Id: 12838520 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 42946C433EF for ; Wed, 4 May 2022 20:55:58 +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=G//WOzf32ZSMUDAxiy2kdXEKU2Crk0ripnziJUslOeE=; b=ZDWlnBGHJw0pie g4VhCIwIpExW5YDgoGtxD+UBqKa93wz1lSNn1eE4j97kapCWSbFxjEy/6QRJBjInZQ3MSdOZ+RNNA 4xeyuxQx56DzDUfV40t+L2L94f4SK7H8QB+XBGLBhMxdlZ12/FsUb5mh/hFknUTqIW9zGq076+1dY essgKzc6Cr6XiYjfCflRPOA/JmTDyGCO3k5MNFn7DFGrnb3PMPQqbb4OAbRDFWUZoRAGvlyK04IUy hHQGYL0DawIq7DrtiZaaO2jbTYRT80FDXVNzXXXdjzfMuQyDuJjhX0YSv6K0au7aiXJjj4qMUbvcd fDlivT3rEeqe/EwDXBPQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nmM2P-00Ch8k-6P; Wed, 04 May 2022 20:55:57 +0000 Received: from mail-tyzapc01on20723.outbound.protection.outlook.com ([2a01:111:f403:704b::723] helo=APC01-TYZ-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nmICJ-00BjWW-3c for linux-i3c@lists.infradead.org; Wed, 04 May 2022 16:49:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Kp9Nu9UobWRZOqvWpeNS0X8U+zuwuQcP5czIXi8FJ6btFNLntE5HiBoCcirfxuLbhyeGFStGIiUz5tCNYUGGZEmJ7bldXarvzWIdOsbiHFlfBXHWV1BDvG19f0bl1jRfbB9xSLSptBTA2WtgkpaG7NgD2eK12zXaFVECXTIQlIYm8XBXCOKEL/2kyIA4gFVNuxhom5cc5kyyscBYOxpweqlQwRuRaTWNyZX+PkDPICJEQmDJBzwe9S0UGeN8VrykZ/QQclODYih0TWYsEBRlOrxv83zBZ+3SWxXTlpD5Q7vWnjZYV7UPKlemBqz0hkCQxhyesAE5Z1eBfHmZPj5oAQ== 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=2oBPpMkz/r0SCCCvodITXRX5xZ/Ic8CkOstXBnXI0VQ=; b=bPdmVIzm6x2kt7fEwYwbi5h/4kx/aSVcaaICBqMFjoKRhGDs731G9/ki06UAb5ofpa3tsem5Rac0sz7lTBE4neRju/RysgMWV4Yhl8rCLbfV/0v9c3HXQ2io2KdTC+N3TOIizFQdTTzoUA5GI7VcOKsI8/5Nuh75Ggi3TmGTTfWQTdwDLUpS8gyw2Bl4BC1Srqar+PvEyfDitpHJ7CUOcowSHOFqPZUNdd+V5Ppup5mhroRSRQa9UT+VScuz+a+kwWgBljDt5a03TPd+oAbz1hPO6kABHL1Q3MUYoVnz6HQHE3n+dYuH+E6JGQfDF5INs+5h3e8F8fk8J6W5lSsPbQ== 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=2oBPpMkz/r0SCCCvodITXRX5xZ/Ic8CkOstXBnXI0VQ=; b=E2nA5cLbd2p1z2qp12CbBK584Es09Mfrqs/0PXHGKmiu9vg81SGe1esWjanCaVDygXXjlGDaEWk9hbeAc4ceA+nCbY7yo2RrdxudodIxUQskS0/AgA1FMp+EJBG+u8jTrJQhGvpW65D4VaX/ZIw6yMRT4PM9Lq0jt07EV3TRQb4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from HK2PR06MB3492.apcprd06.prod.outlook.com (2603:1096:202:2f::10) by PS2PR06MB3496.apcprd06.prod.outlook.com (2603:1096:300:64::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5206.12; Wed, 4 May 2022 16:49:47 +0000 Received: from HK2PR06MB3492.apcprd06.prod.outlook.com ([fe80::88e1:dc04:6851:ad08]) by HK2PR06MB3492.apcprd06.prod.outlook.com ([fe80::88e1:dc04:6851:ad08%7]) with mapi id 15.20.5206.014; Wed, 4 May 2022 16:49:46 +0000 From: Guo Zhengkui To: Miquel Raynal , Conor Culhane , Alexandre Belloni , linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org Cc: zhengkui_guo@outlook.com, Guo Zhengkui Subject: [PATCH] i3c: master: svc: fix returnvar.cocci warning Date: Thu, 5 May 2022 00:49:01 +0800 Message-Id: <20220504164901.9622-1-guozhengkui@vivo.com> X-Mailer: git-send-email 2.20.1 X-ClientProxiedBy: HK2PR0302CA0006.apcprd03.prod.outlook.com (2603:1096:202::16) To HK2PR06MB3492.apcprd06.prod.outlook.com (2603:1096:202:2f::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f836e924-0773-4634-a15a-08da2dee179f X-MS-TrafficTypeDiagnostic: PS2PR06MB3496: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: l55F+MwKx5hlbMjmYJlrPDXEH+YbGdrXTLOFyjjfIltvaX21EShzxivqtsW2KTIHilJOXlL2ZaTR+VF9w3axYkdYZh6p1izi0HYyTrHEdanMgTkUpgXMT2jroHm1tzz48fhvrVmpiiIglesKFh0pEAAiCPWSxomC13PPHhBcl509DYOl3XjUDwI/iSiBpy/YT4cfCOCyJ8EB2BLO77Tu07+hrBdoGgYkLY6rfO7fIqDa3ydi8dex54To3u8y7gGsiXWArx+rIyT9SLfG+yqYjcAa1f990Uqwp77KLUAY2ILBUKAb147aXV9+hq5gVxfu8igQ9lDHNsALeNYoD2DmdOhQNwpF7IEu2XR6hNsMQIYtLYnTyqPMRsgCLtEzB600clGvxqkwRLXxerG/7XIyCVwj/0MqIKRelK0kf1bBWIzyBZTI07hKoVzUT8wsviX55fDREFbRVBYsQAk8CA4rAVopUG+/hOVc92069vGYIKEDZydo/UpFe//gQsg4p9E7Jr2To0TNoVA77rCWOSCWQbwB7NAa42wPy+55MBYl8dY2yRpRAFU8zoa8g8isFD/YUh6/0Xm7uA4FgGPFyJ6wPTUvQIbbjQuo6D0HeMnAvuxII1ghCybSTPq8cHtdPUl0Zp5XBzqj0jSU/ZPeo0n4HmkXl98/0TKyOGrA6EgZzWpnR96Di6gzXvVW/R5J+laGi1be33FSUIZcKKtEHbQ9vw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HK2PR06MB3492.apcprd06.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(2906002)(316002)(83380400001)(110136005)(5660300002)(8936002)(38100700002)(38350700002)(8676002)(4744005)(66556008)(86362001)(66946007)(66476007)(4326008)(6512007)(186003)(508600001)(1076003)(2616005)(107886003)(6666004)(36756003)(6486002)(26005)(6506007)(52116002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: VaYoU+C71Du6c4mW7vkcfvyKOjLktECCZE87655XsPKD3ZlF3QN5cBaQb8lHmC9U4Mq+e1gKZnDsTUlr+7m2TJYCCMSpo1io2tHRxsoxZcNc0D3LTQRUcqYhr4OtUmQbP248CrLdC10NmKMDd32xjjc+B+3vOy7ZgC1EPSkR17dcGigmUTzThDTf7ezsYBok/h2TnnQUSiEZvGeM0CMzwDCh41duC65Q6eNPZYvpN2U7UkTzCvsUm4bAp8voMY00hDTVPyekdiebhTIUZ4VM1XeNW1VP7KqE3LnnVg0wizp+2Qq0m10CWFgG9FeEZqbhp5TNqjos2rhU/VVmsWsu9b3vcns7h6rSSVMMAOdmKtfz4GYVmyjAgKtbmeeEw5va9eN9vBaKWR9viaB5WToCBihPOdJZP2TsdD7YTYGM475X6bGU19d4zSaSkua+VA5ML8IGqgrqyk+Hfck+LweKOGisBoeh3sijP6mddHkw4zwFNC4A89jaETobGlBTtDq5hyf0xO32lpwXzSvKAYcMercygW0E/LSL8f51OaZGSr1TbMycqFSw5cZq/h89NyDsZ5yLJ814Rj+OhOOz3Nhxpl8oKdmxAtvwMqviRqaJ8kItz7mJNIR49NnCy2gAaOTl5xuM9fXuV9TsQ5eINZ+ZesjitrAwUI4QsFT+vVzJOeYWYiPtmSAmEVeJ9+QbIQPQ+pmJssJKgw6N0FsVlNPTD2LMySk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enant-Network-Message-Id: f836e924-0773-4634-a15a-08da2dee179f X-MS-Exchange-CrossTenant-AuthSource: HK2PR06MB3492.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 May 2022 16:49:46.6431 (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: VG88h8gqrBxTs0mYlHOHwW6SRCA7iiLPLXSu5d9HD5w7R8bXhLyVjEUAJGPVcGj+CRUkd5SZuDItw0u1pjx+Xw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PS2PR06MB3496 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220504_094955_187935_B2F77396 X-CRM114-Status: UNSURE ( 8.35 ) X-CRM114-Notice: Please train this message. X-Mailman-Approved-At: Wed, 04 May 2022 13:55:55 -0700 X-BeenThere: linux-i3c@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-i3c" Errors-To: linux-i3c-bounces+linux-i3c=archiver.kernel.org@lists.infradead.org Fix the following coccicheck warning: drivers/i3c/master/svc-i3c-master.c:1600:5-8: Unneeded variable: "ret". Return "0" on line 1605. Signed-off-by: Guo Zhengkui Reviewed-by: Miquel Raynal --- drivers/i3c/master/svc-i3c-master.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/i3c/master/svc-i3c-master.c b/drivers/i3c/master/svc-i3c-master.c index 7550dad64ecf..d6e9ed74cdcf 100644 --- a/drivers/i3c/master/svc-i3c-master.c +++ b/drivers/i3c/master/svc-i3c-master.c @@ -1597,12 +1597,11 @@ static int __maybe_unused svc_i3c_runtime_suspend(struct device *dev) static int __maybe_unused svc_i3c_runtime_resume(struct device *dev) { struct svc_i3c_master *master = dev_get_drvdata(dev); - int ret = 0; pinctrl_pm_select_default_state(dev); svc_i3c_master_prepare_clks(master); - return ret; + return 0; } static const struct dev_pm_ops svc_i3c_pm_ops = {