Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1018526pxb; Wed, 6 Apr 2022 06:51:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAltZ4X4sUGLFYkIz5A2xWKaoAEdsYCxod4MUtMHS6aLu/Bp9BVFk04KPXPgA3DODUE/E5 X-Received: by 2002:a17:902:b185:b0:14f:2d94:184 with SMTP id s5-20020a170902b18500b0014f2d940184mr8765253plr.56.1649253115194; Wed, 06 Apr 2022 06:51:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649253115; cv=none; d=google.com; s=arc-20160816; b=p4N06pXBgwvWHPO943CkdfNN3eZGHATZsMbU8OoN4b3dkOxwZGLhzJNRSaSGMpg61q 01JRZCu7YY0wSgxqwfwH1wQOf48ynjDi87hQjNAc9msDPJb2ytG2zALxxBBndB/gPFti drhZ3xgEks51XawGVorQBG2amiCdzC7QV2Jq5UQr7sEAX8w9CiUDC5GTpF9xZ5MPSmup v+K/uV1CDp6T5AYMmcTx37jkFxpcR2KA8ufCCCgVwyZB563zJK/HOPg2UOcuhod2S/cD aMEqf3W6Nf0aJyiy+KIJEhYCsB58ZffENF9iAIcZJKkLYRzb1xEliPKDKAlPnT2j2+FN Idew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=mkssPMBqLawkpCcgxGAGgUQr8lTsDy50tBBYAVAclQ8=; b=bcXODwIIRkEOW1H1gBwuJHUiuhdNHXWLAEM001dh1VtfdsMxTPKOMWu+1wMIw1e2cg /LBHTLygYcsWtFBMBZ4Bb42Q8eyuTZqG42AksZj15BmLNX0HdVniGp9T5g+R9xPtQmC/ McLPT6PYNaL42tnCVtxFcszhfcKoAfv6BHFCrtj69yrZBdkiOQ5tDN8tJAATe2x0YshL Q6vTSiAQ4jM5QBIuSAZAsonpV5PFjVICKzqnnzKg0cjJaCiunx2QSJ0ZKQrIAiV2hGJE JJHAQvK+X74nAmWkR/PB+1hvKfcW4N3/vIz9+1Tlr9gRl9BkkBVs1ds8xED1ykIShYJS Iadg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=WXzEgS0A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id e18-20020a17090301d200b00156a2cedc85si9715707plh.528.2022.04.06.06.51.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 06:51:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=WXzEgS0A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 74943AAB60; Wed, 6 Apr 2022 04:46:41 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1844969AbiDFBxa (ORCPT + 99 others); Tue, 5 Apr 2022 21:53:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348213AbiDEJrO (ORCPT ); Tue, 5 Apr 2022 05:47:14 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62106EAC81; Tue, 5 Apr 2022 02:33:27 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 0E916B81B75; Tue, 5 Apr 2022 09:33:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5EFE5C385A0; Tue, 5 Apr 2022 09:33:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649151204; bh=fzc4q4gZLney9QwrOtP6lm/QNQXxrEaZFH5DeGM5/BQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WXzEgS0AxQblUxGgInoJH0m+4mBx+5TlJOJa1Tj9R05gPg4M68Q2fn9J26/MWTyIm ZsvUQ/eAlB+AvNZy2tnw/iVC5qylIz+mba6MrKCe6mvJ1dj3ntEYg8c8zpgW/Ca//i WkVMmJhVC/SeGlCMesXx8cRyCp0QOSz07a7j1DyE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Marijn Suijten , AngeloGioacchino Del Regno , Alex Elder , Bjorn Andersson , Sasha Levin Subject: [PATCH 5.15 294/913] firmware: qcom: scm: Remove reassignment to desc following initializer Date: Tue, 5 Apr 2022 09:22:36 +0200 Message-Id: <20220405070348.669236024@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 From: Marijn Suijten [ Upstream commit 7823e5aa5d1dd9ed5849923c165eb8f29ad23c54 ] Member assignments to qcom_scm_desc were moved into struct initializers in 57d3b816718c ("firmware: qcom_scm: Remove thin wrappers") including the case in qcom_scm_iommu_secure_ptbl_init, except that the - now duplicate - assignment to desc was left in place. While not harmful, remove this unnecessary extra reassignment. Fixes: 57d3b816718c ("firmware: qcom_scm: Remove thin wrappers") Signed-off-by: Marijn Suijten Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Alex Elder Signed-off-by: Bjorn Andersson Link: https://lore.kernel.org/r/20211208083423.22037-2-marijn.suijten@somainline.org Signed-off-by: Sasha Levin --- drivers/firmware/qcom_scm.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/firmware/qcom_scm.c b/drivers/firmware/qcom_scm.c index 27a64de91981..2b5214d5c0da 100644 --- a/drivers/firmware/qcom_scm.c +++ b/drivers/firmware/qcom_scm.c @@ -749,12 +749,6 @@ int qcom_scm_iommu_secure_ptbl_init(u64 addr, u32 size, u32 spare) }; int ret; - desc.args[0] = addr; - desc.args[1] = size; - desc.args[2] = spare; - desc.arginfo = QCOM_SCM_ARGS(3, QCOM_SCM_RW, QCOM_SCM_VAL, - QCOM_SCM_VAL); - ret = qcom_scm_call(__scm->dev, &desc, NULL); /* the pg table has been initialized already, ignore the error */ -- 2.34.1