[PATCH] drm/i915:Move the code position to reduce the number of judgments

2022-08-25 Thread Lv qian
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

Re: [PATCH] drm/i915:Move the code position to reduce the number of judgments

2022-08-25 Thread Jani Nikula
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 -