Re: [PATCH RESEND] pc-dimm: remove unnecessary get_vmstate_memory_region() method

2021-05-03 Thread Igor Mammedov
On Sun, 25 Apr 2021 14:11:36 +0200 "Maciej S. Szmigiero" wrote: > From: "Maciej S. Szmigiero" > > The get_vmstate_memory_region() method from PCDIMMDeviceClass is only > ever called from this class and is never overridden, so it can be converted > into an ordinary function. > This saves us from

[PATCH RESEND] pc-dimm: remove unnecessary get_vmstate_memory_region() method

2021-04-25 Thread Maciej S. Szmigiero
From: "Maciej S. Szmigiero" The get_vmstate_memory_region() method from PCDIMMDeviceClass is only ever called from this class and is never overridden, so it can be converted into an ordinary function. This saves us from having to do an indirect call in order to reach it. Signed-off-by: Maciej S.