Verified Commit 918ebd60 authored by Thomas Haller's avatar Thomas Haller

device: fix casting pointer to enum for sriov_reset_on_deactivate_cb()

Avoids a compiler warning:

    ../src/devices/nm-device.c:16079:26: error: cast to smaller integer type 'NMDeviceStateReason' from 'gpointer' (aka 'void *') [-Werror,-Wvoid-pointer-to-enum-cast]
            deactivate_ready (self, (NMDeviceStateReason) reason);
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

Fixes: 121c58f0 ('core: set number of SR-IOV VFs asynchronously')
parent 818d146d
Pipeline #195790 passed with stages
in 49 minutes and 11 seconds