Commit fbbb0e5f authored by Sudeep Holla's avatar Sudeep Holla
Browse files

firmware: arm_ffa: Some coding style fixes



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

Message-Id: <20240820-ffa_v1-2-v2-1-18c0c5f3c65e@arm.com>
Signed-off-by: default avatarSudeep Holla <sudeep.holla@arm.com>
parent 8400291e
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -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)