diff options
author | Guo Zhengkui <guozhengkui@vivo.com> | 2022-04-01 05:59:29 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-04-06 17:20:12 +0300 |
commit | 69f0b547e68c27a2e432a2d0459915babf015cb3 (patch) | |
tree | 40b8e81e47dfd02f3986d6fd2c7581e18634c51d /drivers | |
parent | 96621ca578dbadeb12bd190e0733cdc5c76899d8 (diff) | |
download | linux-69f0b547e68c27a2e432a2d0459915babf015cb3.tar.xz |
drm/radeon: simplify if-if to if-else
Replace `if (!ret)` with `else` for simplification.
Signed-off-by: Guo Zhengkui <guozhengkui@vivo.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_pm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_pm.c b/drivers/gpu/drm/radeon/radeon_pm.c index c67b6ddb29a4..e765abcb3b01 100644 --- a/drivers/gpu/drm/radeon/radeon_pm.c +++ b/drivers/gpu/drm/radeon/radeon_pm.c @@ -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; } } |