mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 14:45:24 +00:00
node_device_udev: remove yoda condition
This commit is contained in:
parent
29c2a9cc21
commit
0c8fe3d457
@ -1206,7 +1206,7 @@ static int udevEnumerateDevices(struct udev *udev)
|
||||
udev_enumerate = udev_enumerate_new(udev);
|
||||
|
||||
ret = udev_enumerate_scan_devices(udev_enumerate);
|
||||
if (0 != ret) {
|
||||
if (ret != 0) {
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||
_("udev scan devices returned %d"),
|
||||
ret);
|
||||
|
Loading…
Reference in New Issue
Block a user