diff options
| author | Amitoj Kaur Chawla <[email protected]> | 2016-08-01 06:18:38 +0000 |
|---|---|---|
| committer | Joerg Roedel <[email protected]> | 2016-08-09 15:27:48 +0000 |
| commit | 423595e89ddf9b657812a33932a5e2ad1bb9dd54 (patch) | |
| tree | 99623022f61aca32374c0c58a338da06cd17b0c2 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
| parent | Linux 4.8-rc1 (diff) | |
| download | kernel-423595e89ddf9b657812a33932a5e2ad1bb9dd54.tar.gz kernel-423595e89ddf9b657812a33932a5e2ad1bb9dd54.zip | |
iommu/exynos: Fix error handling for of_platform_device_create
of_platform_device_create returns NULL on error so an IS_ERR test is
incorrect here and a NULL check is required.
The Coccinelle semantic patch used to make this change is as follows:
@@
expression e;
@@
e = of_platform_device_create(...);
if(
- IS_ERR(e)
+ !e
)
{
<+...
return
- PTR_ERR(e)
+ -ENODEV
;
...+>
}
Signed-off-by: Amitoj Kaur Chawla <[email protected]>
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions
