From patchwork Wed Aug 14 13:48:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 13763520 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 D010CC531DD for ; Wed, 14 Aug 2024 13:51:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:To:In-Reply-To:References: Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=+CweAkAJr9mntclzvPa7UIasbvY59T5xkn8SIizEWjc=; b=ygaCqtl46UPCquCJV73cA0GFQe 3XEH4o4YfWd8Bxo+YiA2PTo5j+dRRhMec/PfZuR+wnUOKyLas6MIEIgGxTi3mrtZmKFCu8vadedg/ RqAOyfh2kXqAAXrOGUKMxXXgmB0X3BADmQv1lpH8LEQ/ySJoC6qwXT5rD87cJufeaQoipMEvz+8EB GlHHUHew5FNmqJr03mTCiQoGrLeDVyGRTbi9Wza6gLGFzaT5qJ3wX7Y5Udn2HvqQghz+3H+gYGCMk A/GRs8ZU1rO71LsMVxn2ehsagBl7E3SM57VGgmbJrQwCvGvB18xgd1MFMh1i3aYn6e0pHvxx3grH8 ABUoQXpg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1seEP1-000000079X3-17ks; Wed, 14 Aug 2024 13:51:03 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1seENB-00000007947-3ORX for linux-arm-kernel@lists.infradead.org; Wed, 14 Aug 2024 13:49:12 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 44F69FEC; Wed, 14 Aug 2024 06:49:35 -0700 (PDT) Received: from [127.0.1.1] (e107155-lin.cambridge.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D27453F6A8; Wed, 14 Aug 2024 06:49:08 -0700 (PDT) From: Sudeep Holla Date: Wed, 14 Aug 2024 14:48:50 +0100 Subject: [PATCH 1/7] firmware: arm_ffa: Some coding style fixes MIME-Version: 1.0 Message-Id: <20240814-ffa_v1-2-v1-1-9e9abef69b21@arm.com> References: <20240814-ffa_v1-2-v1-0-9e9abef69b21@arm.com> In-Reply-To: <20240814-ffa_v1-2-v1-0-9e9abef69b21@arm.com> To: linux-arm-kernel@lists.infradead.org, Sudeep Holla , op-tee@lists.trustedfirmware.org X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1607; i=sudeep.holla@arm.com; h=from:subject:message-id; bh=cZTAsRfmNjba/xBvkOD3FhtdQGmyLXIFXmSg73yxnqU=; b=owEBbQKS/ZANAwAIAQBBurwxfuKYAcsmYgBmvLXSA+nVxOQ6UNH+d7B23MwuecbPWZ13Dmu/d O99FlDsRfiJAjMEAAEIAB0WIQS6ceUSBvMeskPdk+EAQbq8MX7imAUCZry10gAKCRAAQbq8MX7i mLKgD/sGwmxjPzyP1piHwolf5JM1F/lpluueotzqszC/oVe9NDIDMdP06Cn2irZrhKrXCV5OPOI ZBL7dMTEH6CfiL8KcGdzfNzwyma2oZnov+r4K/Uy72RR93zXgTv7WHCmnFnuxwIeIAg6Eb/yCmN EPnMKBgHJhuj6bM2CIMumZ2I+jextl6QAz6yVUl2nM7Mf7MUKD/Hyn4He0BxM0odNl1ISM7XYiK +T8pwjkJ5T/3eJeHSxFWIOcDt1rWNmFGvU0+AAnb1GgWJrtkSiZ9/9nU9fte8nebHYVIkmG8h3T iHwchj3GSpRPnCiO6rB2SgDBRNabRqHkaZxFN5dE0uAEoQ/lSPtnCw3mUlTgapJKFlOu11EKlf7 hnL4KCNxbWk1L6Z+ouzjJXVMqLRDY1DHkngGYdZgiuAT5HFpuYp508b+VcVpjpSx7oOJo42qXGm u6Ro5yZqTHLGoQbrMZExk9RzeaUBJUrgu2c9az89E9aY4RW5WwlNQPzCFAD5px6pFWJuaqRzWRq FVJaMIeEmlDf53mKFnlhiw9aDKRS5fmVLe1gzEdHhehQ5VPog1wYdGUlHjaHFDfWw5OTCtwipd0 1Ee4nElqBZMdRkMlDolwP5i0xQgqJZGLtCOAL+ud81BKWgyFiT6If16LmWCJumdXvCaGy9wVoZs XQb/T/XU8Z44WZw== X-Developer-Key: i=sudeep.holla@arm.com; a=openpgp; fpr=7360A21742ADF5A11767C1C139CFD4755FE2D5B4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240814_064909_955504_4FC8580C X-CRM114-Status: GOOD ( 11.35 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org These changes fixes a set of below coding style issues: 1. spaces required around that '=' (ctx:VxW) 2. possible unnecessary 'out of memory' message 3. unnecessary for single statement blocks Signed-off-by: Sudeep Holla --- drivers/firmware/arm_ffa/driver.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/firmware/arm_ffa/driver.c b/drivers/firmware/arm_ffa/driver.c index 7ba98c7af2e9..b4b3ecc9824e 100644 --- a/drivers/firmware/arm_ffa/driver.c +++ b/drivers/firmware/arm_ffa/driver.c @@ -1242,7 +1242,7 @@ ffa_bus_notifier(struct notifier_block *nb, unsigned long action, void *data) if (action == BUS_NOTIFY_BIND_DRIVER) { struct ffa_driver *ffa_drv = to_ffa_driver(dev->driver); - const struct ffa_device_id *id_table= ffa_drv->id_table; + const struct ffa_device_id *id_table = ffa_drv->id_table; /* * FF-A v1.1 provides UUID for each partition as part of the @@ -1327,8 +1327,6 @@ static int ffa_setup_partitions(void) /* Allocate for the host */ info = kzalloc(sizeof(*info), GFP_KERNEL); if (!info) { - pr_err("%s: failed to alloc Host partition ID 0x%x. Abort.\n", - __func__, drv_info->vm_id); /* Already registered devices are freed on bus_exit */ ffa_partitions_cleanup(); return -ENOMEM; @@ -1609,9 +1607,8 @@ static int __init ffa_init(void) return ret; drv_info = kzalloc(sizeof(*drv_info), GFP_KERNEL); - if (!drv_info) { + if (!drv_info) return -ENOMEM; - } ret = ffa_version_check(&drv_info->version); if (ret)