Re: [PATCH v2 06/18] firmware: arm_ffa: Refactor addition of partition information into XArray
From: Viresh Kumar
Date: Thu Feb 13 2025 - 23:50:45 EST
On 31-01-25, 11:24, Sudeep Holla wrote:
> @@ -1461,39 +1480,18 @@ static int ffa_setup_partitions(void)
> !(tpbuf->properties & FFA_PARTITION_AARCH64_EXEC))
> ffa_mode_32bit_set(ffa_dev);
>
> - info = kzalloc(sizeof(*info), GFP_KERNEL);
> - if (!info) {
> + if (ffa_xa_add_partition_info(ffa_dev->vm_id)) {
> ffa_device_unregister(ffa_dev);
> continue;
> }
> - rwlock_init(&info->rw_lock);
> - ret = xa_insert(&drv_info->partition_info, tpbuf->id,
> - info, GFP_KERNEL);
> - if (ret) {
> - pr_err("%s: failed to save partition ID 0x%x - ret:%d\n",
> - __func__, tpbuf->id, ret);
> - ffa_device_unregister(ffa_dev);
> - kfree(info);
> - }
> +
Why extra blank line here ?
> }
--
viresh