diff options
author | Georgiana Chelu <georgiana.chelu93@gmail.com> | 2017-10-17 23:22:07 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-10-19 15:27:22 -0400 |
commit | bada22d021135374332bc7de59c93761778d7989 (patch) | |
tree | 8b9c54f17f71def46721b47da3cf7efd23f54012 /drivers/gpu/drm/amd/amdgpu/soc15.h | |
parent | d2d7cc330dc1f8ea7cf29dfb7d3ad8bccdcde597 (diff) |
drm/amd/powerplay: Don't cast kzalloc() return value
The kzalloc function returns a void pointer and the assignment
operator converts it to the type of pointer it is assigned to.
Therefore, there is no need to cast.
Issue found by alloc_cast.cocci:
* WARNING: casting value returned by memory allocation function
to <struct type> is useless.
Path to the cocci script: scripts/coccinelle/api/alloc/alloc_cast.cocci
Signed-off-by: Georgiana Chelu <georgiana.chelu93@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/soc15.h')
0 files changed, 0 insertions, 0 deletions