Commit 69f0b547 authored by Guo Zhengkui's avatar Guo Zhengkui Committed by Alex Deucher

drm/radeon: simplify if-if to if-else

Replace `if (!ret)` with `else` for simplification.
Signed-off-by: default avatarGuo Zhengkui <guozhengkui@vivo.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 96621ca5
......@@ -1629,7 +1629,7 @@ int radeon_pm_late_init(struct radeon_device *rdev)
ret = device_create_file(rdev->dev, &dev_attr_power_method);
if (ret)
DRM_ERROR("failed to create device file for power method\n");
if (!ret)
else
rdev->pm.sysfs_initialized = true;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment