Re: [PATCH 10/19] drm/amdkfd: Remove BUG_ONs for NULL pointer arguments

2017-08-12 Thread Oded Gabbay
On Sat, Aug 12, 2017 at 12:56 AM, Felix Kuehling wrote: > Remove BUG_ONs that check for NULL pointer arguments that are > dereferenced in the same function. Dereferencing the NULL pointer > will generate a BUG anyway, so the explicit check is redundant and > unnecessary overhead. > > Signed-off-by

[PATCH 10/19] drm/amdkfd: Remove BUG_ONs for NULL pointer arguments

2017-08-11 Thread Felix Kuehling
Remove BUG_ONs that check for NULL pointer arguments that are dereferenced in the same function. Dereferencing the NULL pointer will generate a BUG anyway, so the explicit check is redundant and unnecessary overhead. Signed-off-by: Felix Kuehling --- drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c