migration: Split ram_bytes_total_common() in two functions
authorJuan Quintela <quintela@redhat.com>
Tue, 10 May 2022 17:18:19 +0000 (19:18 +0200)
committerJuan Quintela <quintela@redhat.com>
Sat, 11 Feb 2023 15:51:09 +0000 (16:51 +0100)
commit8008a272d6b3aa4ba5a21c70786e107df65b9b51
tree3dbe3af8795eeed3d94250fa6e3a440016232cea
parent31e2ac742b6235cb5002ddd89bfbbf291e8923e3
migration: Split ram_bytes_total_common() in two functions

It is just a big if in the middle of the function, and we need two
functions anways.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Juan Quintela <quintela@redhat.com>
---

Reindent to make Phillipe happy (and CODING_STYLE)
migration/ram.c