Re: [Nouveau] [PATCH -next 6/7] drm/format-helper: Remove unnecessary NULL values

2023-08-11 Thread Arthur Grillo
On 09/08/23 00:44, Ruan Jinjie wrote: > The NULL initialization of the pointers assigned by > kunit_kzalloc() first is not necessary, because if kunit_kzalloc() > failed, the pointers will be assigned NULL, otherwise it works > as usual. so remove it. > > Signed-off-by: Ruan Jinjie > --- > ..

[Nouveau] [PATCH -next 6/7] drm/format-helper: Remove unnecessary NULL values

2023-08-08 Thread Ruan Jinjie
The NULL initialization of the pointers assigned by kunit_kzalloc() first is not necessary, because if kunit_kzalloc() failed, the pointers will be assigned NULL, otherwise it works as usual. so remove it. Signed-off-by: Ruan Jinjie --- .../gpu/drm/tests/drm_format_helper_test.c| 28