If the kmalloc allocation is successful, the if is judged twice,
so I move the second judgment in to the first judgment.
Signed-off-by: Lv qian
---
drivers/gpu/drm/i915/i915_gpu_error.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/i
On Thu, 25 Aug 2022, Lv qian wrote:
> If the kmalloc allocation is successful, the if is judged twice,
> so I move the second judgment in to the first judgment.
The code is fine as it is.
BR,
Jani.
>
> Signed-off-by: Lv qian
> ---
> drivers/gpu/drm/i915/i915_gpu_error.c | 8 -