diff options
| author | Vaishali Thakkar <[email protected]> | 2016-04-28 13:22:49 +0000 |
|---|---|---|
| committer | Rob Clark <[email protected]> | 2016-05-08 14:22:16 +0000 |
| commit | d6c925cada0d92e49c3473bc0a69ea3913fff905 (patch) | |
| tree | cdc28b0bbba63afb866e8f087ef214aa119ba109 /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
| parent | drm/msm/mdp: Add support for more RGBX formats (diff) | |
| download | kernel-d6c925cada0d92e49c3473bc0a69ea3913fff905.tar.gz kernel-d6c925cada0d92e49c3473bc0a69ea3913fff905.zip | |
drm/msm: Move call to PTR_ERR_OR_ZERO after reassignment
Here, a location is reset to NULL before being passed to PTR_ERR.
So, PTR_ERR should be called before its argument is reassigned
to NULL. Further to simplify things use PTR_ERR_OR_ZERO instead
of PTR_ERR and IS_ERR.
Problem found using Coccinelle.
Signed-off-by: Vaishali Thakkar <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
[fixed fmt string warning (s/%ld/%d/)]
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions
