Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Guo Zhengkui and committed by
Alex Deucher
69f0b547 96621ca5

+1 -1
+1 -1
drivers/gpu/drm/radeon/radeon_pm.c
··· 1629 1629 ret = device_create_file(rdev->dev, &dev_attr_power_method); 1630 1630 if (ret) 1631 1631 DRM_ERROR("failed to create device file for power method\n"); 1632 - if (!ret) 1632 + else 1633 1633 rdev->pm.sysfs_initialized = true; 1634 1634 } 1635 1635 }