drm/radeon: cleanup coding style a bit
authorBernard Zhao <bernard@vivo.com>
Sun, 26 Apr 2020 13:12:44 +0000 (06:12 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Apr 2020 20:48:42 +0000 (16:48 -0400)
commit981d4f7d2c0dc5bc7d42e7f4afee1e6ded5a9cb3
treea398eff1c7a5b0a543ac236bdeca1121e3a9c7a3
parent439657970c1d2ee313a9deee296230e7d6cbd3b0
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>
drivers/gpu/drm/radeon/atom.c