答复: [PATCH] drm/amd/amdgpu: cleanup the code style a bit

2021-11-15 Thread 赵军奎
; amd-...@lists.freedesktop.org; dri-devel@lists.freedesktop.org; linux-ker...@vger.kernel.org 主题: Re: [PATCH] drm/amd/amdgpu: cleanup the code style a bit Am 15.11.21 um 08:07 schrieb Bernard Zhao: > This change is to cleanup the code style a bit. >To be honest I think the old style

Re: [PATCH] drm/amd/amdgpu: cleanup the code style a bit

2021-11-15 Thread Christian König
Am 15.11.21 um 08:07 schrieb Bernard Zhao: This change is to cleanup the code style a bit. To be honest I think the old style looked better. It took me a moment to validate this now. What you could to instead is to have goto style error handling which would make this a bit more cleaner I th

[PATCH] drm/amd/amdgpu: cleanup the code style a bit

2021-11-14 Thread Bernard Zhao
This change is to cleanup the code style a bit. Signed-off-by: Bernard Zhao --- drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c index 04cf9