Message ID | 20180828200057.GA13565@lkp-wsm-ep2 (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | drm/amd/display: fix ptr_ret.cocci warnings | expand |
--- a/drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_debugfs.c +++ b/drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_debugfs.c @@ -768,8 +768,5 @@ int dtn_debugfs_init(struct amdgpu_devic adev, &dtn_log_fops); - if (IS_ERR(ent)) - return PTR_ERR(ent); - - return 0; + return PTR_ERR_OR_ZERO(ent); }