diff options
author | Cédric Le Goater <clg@redhat.com> | 2024-05-02 15:15:33 +0200 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2024-05-10 06:23:56 +0200 |
commit | 3d9836e46dbe1e46c39fe76a62d3085a71ddbf7a (patch) | |
tree | cf74619dee535c7c1da064b9740c54a80cfdd8c1 /blockdev-nbd.c | |
parent | af4a3e32f3e1284662ebc1fd50a8c5e1776ebece (diff) |
s390x/sclp: Simplify get_sclp_device()
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 <clg@redhat.com>
Message-ID: <20240502131533.377719-4-clg@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'blockdev-nbd.c')
0 files changed, 0 insertions, 0 deletions