Re: [PATCH 3/3] s390x/sclp: Simplify get_sclp_device()

2024-05-02 Thread Thomas Huth
On 02/05/2024 15.15, Cédric Le Goater wrote: get_sclp_device() scans the whole machine to find a TYPE_SCLP object. Now that the SCLPDevice instance is available under the machine state, use it to simplify the lookup. While at it, remove the inline to let the compiler decide on how to optimize. S

[PATCH 3/3] s390x/sclp: Simplify get_sclp_device()

2024-05-02 Thread Cédric Le Goater
get_sclp_device() scans the whole machine to find a TYPE_SCLP object. Now that the SCLPDevice instance is available under the machine state, use it to simplify the lookup. While at it, remove the inline to let the compiler decide on how to optimize. Signed-off-by: Cédric Le Goater --- hw/s390x/s