From patchwork Mon Jul 24 06:38:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 124645 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp1614573vqg; Sun, 23 Jul 2023 23:54:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlHJ6vyjIwoqSQ1WEeXWQrXmSTUZXPSHmbQCLMfkqaIm9DqSvKlmBF/Hw4aXWD+5sDSbGqDT X-Received: by 2002:a05:6402:1a54:b0:516:af22:bcc6 with SMTP id bf20-20020a0564021a5400b00516af22bcc6mr7886522edb.21.1690181669892; Sun, 23 Jul 2023 23:54:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690181669; cv=pass; d=google.com; s=arc-20160816; b=pGRxg34VuCnqthsvjWbvaOICIE9LZYvd5KIxLLJvcXFeB2fxg+yg+7Hn1dzDPQvtSH sRXMuf7zeJCCKd2GEuewpHScJqV43rVuFNRGsQXbCNEE86OA/p7EZQoH/siezFmdIvJg 8odj7EB1w8BbtZV2w42sKFatdutKX5vvnEIiOkrDBTUtLtTUABZhykN4UBwNcRINiaFL WZJgtVhZDo2ps2BCXuhNU40rP0IXu8HRgqxEZPx4OzQyu1nswRGfleK1DnRvi3Bci9If NdS05t9lhZU2/rvD60+sVnhg8wy9EVoL8NjuBqoV2tET2MMrLqP5YPg5LrNtEgbxBS/2 iMNQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=I1EaanuMVw3yN21IXzDoO2thxcz5R4f6468cftBXaho=; fh=lMFpnJZCjkSvetl9tpFZk4oM1K582D2CBXvvYFGhgSk=; b=iEDpaa/9sQXWb7sICKMl3MzvdXXFMDZ9E0FrgRTUJv6zHSLJTXaeVxsceidsTfAM4d LC6yMdExKpYwcBESHpYxpWjB9BQVMY3Y8Pswe+QZRFeLlCWqvis9zg07z0jJdanx8jnt CTgLl5E8gTmKH1kt9cqqlBVX7m92azAJafAtOx2g5KGyGr9bXQIgWIBdd/dy8cSiCfDt 58tPjNOyjhbqHDn3gnEYqn0XlvpoT61+4pFfEhdxUAkYcGFCdv9OyOHlmaAzwMvjDBNg dqIdjbxEuo8opdAeZRFqiKD0zVOmrzLlJzugFtmgzhx2oz9qABVQNxTZUaNC+HCr2X1L Khdw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=YAYl3+dk; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i9-20020aa7dd09000000b005222ae088b1si1481892edv.271.2023.07.23.23.54.06; Sun, 23 Jul 2023 23:54:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=YAYl3+dk; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230327AbjGXGee (ORCPT + 99 others); Mon, 24 Jul 2023 02:34:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230199AbjGXGeS (ORCPT ); Mon, 24 Jul 2023 02:34:18 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2047.outbound.protection.outlook.com [40.107.21.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3066FD for ; Sun, 23 Jul 2023 23:34:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DS+sFXaBL1f2P2ppmG/NA61JO8WjfI2CwLJrYG46r6vZo2DGiZR8DZgmloIroRPGCgp4G7SdvSpj+5rf4Lb97uaXha8fUEpfd/NMKFPja53+h34zzX1Cv60Mb2rD87YIPtuPFPcHjx4i7dDjPPCe0CHQ65WE2rRTsGzBJtt+nA24fNZuEakqsZXZNaYB8J9SA8pwNhRZzOENoMveQZbUjp2aAe6RAOZyz72SI7A8a9GQbUht9TBWawESpB0IUDYy6jjka8S2jDACb0nu6euP86KUZM85WkUiIhQYIxb76XCQbDnP7Xf1ieGjvhnDgSAZdz5CQfiAaWmkQqkDoLmEzg== 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=I1EaanuMVw3yN21IXzDoO2thxcz5R4f6468cftBXaho=; b=YKF1t/m68AlfP6+oSSgGEYh2mTc46wK8rTvfthV+8tsaksMZDkNoZi40+IjSssUfwOFWsASJjrLllYvfQpxeZ7R0/R+TDkdulzAQ9UQAIm8oW5Vq7uVZnmYTnJ42ohwAHow5mXmoDtNA7D/nqJcxFumGy9a+PmgUPD/rUunj2W4n9o6qbx5r47uVZYsSzKJroKewT3ezeFMIRq1CwquvejXzwiMTXg+L4GuNkHRC4JvkFqJXqkw8Pjw4BQgh4N3xu9EEzz30fBCjcylmEkoIfWXh0gSfaf81ILP44qHsXhRUg+O1FLQBIf2FQnjePxVj52KQOKLYPwKSLvD/Gh6pGg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=I1EaanuMVw3yN21IXzDoO2thxcz5R4f6468cftBXaho=; b=YAYl3+dkkZn/0J0Li7kqeYEyF/6kBnLkcqPpPPqsj5D8dlOpn5o2YRoER7PeaQ1iZdw02mN/UedBC6ipnlFlPvGYplyscJS49MoN3yoMDygrqE8ezJQorNCK7307uBFfZN4w+Ojp2QJzKV0opNC82odwUKo9c2W6/JaDl4vYQdg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by PAXPR04MB9092.eurprd04.prod.outlook.com (2603:10a6:102:22a::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.31; Mon, 24 Jul 2023 06:34:16 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::5d6a:ec53:f2a8:5b97]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::5d6a:ec53:f2a8:5b97%6]) with mapi id 15.20.6609.032; Mon, 24 Jul 2023 06:34:16 +0000 From: "Peng Fan (OSS)" To: shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, aisheng.dong@nxp.com, alexander.stein@ew.tq-group.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan Subject: [PATCH V4 3/8] firmware: imx: scu: drop return value check Date: Mon, 24 Jul 2023 14:38:47 +0800 Message-Id: <20230724063852.2666930-4-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230724063852.2666930-1-peng.fan@oss.nxp.com> References: <20230724063852.2666930-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SI2P153CA0010.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::13) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|PAXPR04MB9092:EE_ X-MS-Office365-Filtering-Correlation-Id: 69e28c3e-6a11-4583-6e1e-08db8c10007c X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: m3lOI+F1hkRKY52PCllMMF3uqfctcx+CLGhub+4lGF26FFc7KjId+4FCb8xI7XWoDvxTwbe+HkVODzZz08o2eWgj0ve1Hg1/bsb3MMZL38VRND5FJF8u403+ENd9MVwWlnRBGeLJnXEa6T36q9tNIXcJlHqm1u0lSvD71sX4OrPzwyfbDPTNkPYBpL24Bl7qRaS0KtnZjB7z4cUuDduLfqIwMn2h9KSPrew7bWg5LeyyPgjsxfT84pKw5+2kLLd/Fb7Z71Q1Lp3mlOogbwjgo9ny5XFx/KVzLo2MUGv26om26l/2iGXBXLOf3iT0Oqzf9B/8oAr+49C/ptJMLzY5nEOLYarntL1/MRX+kn2khIZDOU5AB1S5XGhjkQL+9/Ws41FrBZIN6Luo9xsSkdhXzY6WFVnQUNXDcp+vzn1yiOQJ1pZx5dc4D3L+8667EHvBKD5JNGQiuuo7P7IG/HzcaExtky429vj2wU9RmOmGyaPKodV3tSNlJ4iY5rkEO7EqmnMrDy/WL76EJEyJGD4hYifZ2hMIVG4B6iNJE+CtytzQVQX7qDP+8hCRrwCeX6/CldtEM73vjQnNbxhCNj+6odWH4OfDYfoQ+DAQq3f/LE4e9N0hijr+dymN42IPm3Wr X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(376002)(346002)(396003)(366004)(136003)(451199021)(2906002)(38100700002)(478600001)(38350700002)(8676002)(6512007)(83380400001)(186003)(6506007)(26005)(2616005)(1076003)(5660300002)(86362001)(8936002)(6666004)(6486002)(52116002)(66946007)(66476007)(66556008)(316002)(41300700001)(4326008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: NUCEYkvgZGO18sVVA92g7FGxA+sJEUEVK1KHLn3ox3pYJ1DmDHSybAql/v0nMDJmRnYTzFP+iSqDC+fK+BvE8nbiFD3ygT+NWiyPZRD61cKSXFFOWeQScSiiioGVvSYBigU/yKc6MeApgzMFIQES/MG7/S/LBRlVcOJJzkUPxZipYtxL/J77LW5MPa70WuD+W/s9YuxeWEPTVTaFifa92QSSFW9x/q9qJDFutaqiBt+HJ+nuu+p+xusUffkeaMBymgRtJcAoOW7QuLO55zLmPQLOJ3ltSYX4zTN9+lRoURc9UKBGuDMtBwkJ+VvXVZwZz2/ez3cN9PLRg/we3MIFGGiy2sTyqeMPGNvFB7I4QM60qisWA6W2Jg2OfUxDKF0oBDpGIFPjgZLfeGscZpr0ySgfikbBEqT0/SjM2GFPxICojrH3chYrtL7VTDEQROMpu15nZS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H6fBStSNendYjTg8uXKlJ4T7qql+zv6uvm1H97Td/Zh4PdiHb0wPe7lk5yaOUT0gBuAbFrJGgiNBapH70EV7Aa7R9J X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 69e28c3e-6a11-4583-6e1e-08db8c10007c X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2023 06:34:16.1633 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: CDeqvRRLnjY3joOMsBQa2bFc/PPfCM/27KsmLHgW5772nR9THS7JSv9YnH5ZbD4ZXtBN/L7Ya//U7Es5Q6inOw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9092 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772283934335830325 X-GMAIL-MSGID: 1772283934335830325 From: Peng Fan For IMX_SC_MISC_FUNC_UNIQUE_ID, the scfw has a return value, and the imx-scu always return 0. So drop the return value check. BTW, also initialize msg to 0. Signed-off-by: Peng Fan --- drivers/firmware/imx/imx-scu-soc.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/firmware/imx/imx-scu-soc.c b/drivers/firmware/imx/imx-scu-soc.c index 2f32353de2c9..ef9103987e76 100644 --- a/drivers/firmware/imx/imx-scu-soc.c +++ b/drivers/firmware/imx/imx-scu-soc.c @@ -33,20 +33,15 @@ struct imx_sc_msg_misc_get_soc_uid { static int imx_scu_soc_uid(u64 *soc_uid) { - struct imx_sc_msg_misc_get_soc_uid msg; + struct imx_sc_msg_misc_get_soc_uid msg = { 0 }; struct imx_sc_rpc_msg *hdr = &msg.hdr; - int ret; hdr->ver = IMX_SC_RPC_VERSION; hdr->svc = IMX_SC_RPC_SVC_MISC; hdr->func = IMX_SC_MISC_FUNC_UNIQUE_ID; hdr->size = 1; - ret = imx_scu_call_rpc(imx_sc_soc_ipc_handle, &msg, true); - if (ret) { - pr_err("%s: get soc uid failed, ret %d\n", __func__, ret); - return ret; - } + imx_scu_call_rpc(imx_sc_soc_ipc_handle, &msg, true); *soc_uid = msg.uid_high; *soc_uid <<= 32;