diff options
author | Xiao Guangrong | 2016-11-07 12:13:43 +0100 |
---|---|---|
committer | Michael S. Tsirkin | 2016-11-15 16:20:37 +0100 |
commit | 880f36125371a969905a3be83a9099ca451b5c12 (patch) | |
tree | 421c48a6617d565a974d5096a5240d4a6c067be7 /hw/acpi | |
parent | nvdimm acpi: rename nvdimm_plugged_device_list (diff) | |
download | qemu-880f36125371a969905a3be83a9099ca451b5c12.tar.gz qemu-880f36125371a969905a3be83a9099ca451b5c12.tar.xz qemu-880f36125371a969905a3be83a9099ca451b5c12.zip |
nvdimm acpi: cleanup nvdimm_build_fit
inline buf_size to refine the code a bit
Suggested-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Xiao Guangrong <guangrong.xiao@linux.intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Diffstat (limited to 'hw/acpi')
-rw-r--r-- | hw/acpi/nvdimm.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/acpi/nvdimm.c b/hw/acpi/nvdimm.c index f2c0659599..148999ee7a 100644 --- a/hw/acpi/nvdimm.c +++ b/hw/acpi/nvdimm.c @@ -1134,11 +1134,9 @@ static void nvdimm_build_fit(Aml *dev) aml_append(ifctx, aml_return(aml_buffer(0, NULL))); aml_append(method, ifctx); - aml_append(method, aml_store(aml_shiftleft(buf_size, aml_int(3)), - buf_size)); aml_append(method, aml_create_field(buf, aml_int(4 * BITS_PER_BYTE), /* offset at byte 4.*/ - buf_size, "BUFF")); + aml_shiftleft(buf_size, aml_int(3)), "BUFF")); aml_append(method, aml_return(aml_name("BUFF"))); aml_append(dev, method); |