Re: [V3] amdgpu: remove unnecessary condition check

2020-04-22 Thread Markus Elfring
> But i have to say there are so many code not follow the kernel code-style in > amdgpu module. > And also the ./scripts/checkpatch.pl did not throw any warning or error. Will such information become more interesting for further evolution in the affected software areas? Regards, Markus

Re: [V3] amdgpu: remove unnecessary condition check

2020-04-22 Thread Markus Elfring
>> But i have to say there are so many code not follow the kernel code-style in >> amdgpu module. >> And also the ./scripts/checkpatch.pl did not throw any warning or error. > > That is unfortunately true, yes. But we try to push new code through the > usual code review and improve things as we

Re: [V3] amdgpu: remove unnecessary condition check

2020-04-22 Thread Markus Elfring
>>> There is no need to if check again, maybe we could merge >>> into the above else branch. I find also this commit message still improvable (besides the mentioned implementation details around coding style concerns). How will corresponding review comments be taken better into account? Regards,

[PATCH V3] amdgpu: remove unnecessary condition check

2020-04-22 Thread Bernard Zhao
There is no need to if check again, maybe we could merge into the above else branch. Signed-off-by: Bernard Zhao Changes since V1: *commit message improve *code style refactoring Changes since V2: *code style adjust Link for V1: *https://lore.kernel.org/patchwork/patch/1226587/ ---

Re:Re: [PATCH V3] amdgpu: remove unnecessary condition check

2020-04-22 Thread 赵军奎
.@vger.kernel.org Cc: opensource.ker...@vivo.com,Bernard Zhao Subject: Re: [PATCH V3] amdgpu: remove unnecessary condition check>Am 21.04.20 um 10:03 schrieb Bernard Zhao: >> There is no need to if check again, maybe we could merge >> into the above else branch. >> >> Sign

Re: [PATCH V3] amdgpu: remove unnecessary condition check

2020-04-21 Thread Christian König
Am 21.04.20 um 10:44 schrieb 赵军奎: diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c index 9dff792c9290..5424bd921a7b 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c +++

Re: [PATCH V3] amdgpu: remove unnecessary condition check

2020-04-21 Thread Christian König
Am 21.04.20 um 10:03 schrieb Bernard Zhao: There is no need to if check again, maybe we could merge into the above else branch. Signed-off-by: Bernard Zhao Changes since V1: *commit message improve *code style refactoring Changes since V2: *code style adjust Link for V1: