Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/radeon: cleanup coding style a bit

Maybe no need to check ws before kmalloc, kmalloc will check
itself, kmalloc`s logic is if ptr is NULL, kmalloc will just
return

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Bernard Zhao <bernard@vivo.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Bernard Zhao and committed by
Alex Deucher
981d4f7d 43965797

+1 -2
+1 -2
drivers/gpu/drm/radeon/atom.c
··· 1211 1211 SDEBUG("<<\n"); 1212 1212 1213 1213 free: 1214 - if (ws) 1215 - kfree(ectx.ws); 1214 + kfree(ectx.ws); 1216 1215 return ret; 1217 1216 } 1218 1217