提交 0c8fe3d4 编写于 作者: J Ján Tomko

node_device_udev: remove yoda condition

上级 29c2a9cc
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册