Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4dbf32c3 authored by Borislav Petkov's avatar Borislav Petkov Committed by H. Peter Anvin
Browse files

x86, microcode: Save an indentation level in reload_for_cpu



Invert the uci->valid check so that the later block can be aligned on
the first indentation level of the function. No functional change.

Signed-off-by: default avatarBorislav Petkov <borislav.petkov@amd.com>
Link: http://lkml.kernel.org/r/1344361461-10076-3-git-send-email-bp@amd64.org


Signed-off-by: default avatarH. Peter Anvin <hpa@linux.intel.com>
parent 36bf50d7
Loading
Loading
Loading
Loading
+9 −10
Original line number Diff line number Diff line
@@ -276,10 +276,11 @@ static struct platform_device *microcode_pdev;
static int reload_for_cpu(int cpu)
{
	struct ucode_cpu_info *uci = ucode_cpu_info + cpu;
	enum ucode_state ustate;
	int err = 0;

	if (uci->valid) {
		enum ucode_state ustate;
	if (!uci->valid)
		return err;

	ustate = microcode_ops->request_microcode_fw(cpu, &microcode_pdev->dev);
	if (ustate == UCODE_OK)
@@ -287,8 +288,6 @@ static int reload_for_cpu(int cpu)
	else
		if (ustate == UCODE_ERROR)
			err = -EINVAL;
	}

	return err;
}