diff options
author | Ravikant B Sharma <ravikant.s2@samsung.com> | 2016-11-08 00:49:42 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-11-11 10:21:07 -0500 |
commit | 3f12325ab8dc3a35f77eaf0155bd6d6e78f67e9c (patch) | |
tree | 02375dd3c54bbd6532fea6a7b86abaf3f32c92c1 /drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c | |
parent | bc24fbe9df6623500ad1fab92e71265d4cb7fa2a (diff) |
drm/amd/amdgpu : Fix NULL pointer comparison
Replace direct comparisons to NULL i.e.
'x == NULL' with '!x'. As per coding standard.
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Ravikant B Sharma <ravikant.s2@samsung.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c index 2b6afe123f3d..b7e2762fcdd2 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c | |||
@@ -70,7 +70,7 @@ static bool igp_read_bios_from_vram(struct amdgpu_device *adev) | |||
70 | return false; | 70 | return false; |
71 | } | 71 | } |
72 | adev->bios = kmalloc(size, GFP_KERNEL); | 72 | adev->bios = kmalloc(size, GFP_KERNEL); |
73 | if (adev->bios == NULL) { | 73 | if (!adev->bios) { |
74 | iounmap(bios); | 74 | iounmap(bios); |
75 | return false; | 75 | return false; |
76 | } | 76 | } |