diff options
author | Himanshu Jha <himanshujha199640@gmail.com> | 2017-09-11 18:07:26 +0530 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-09-12 14:32:55 -0400 |
commit | 4a00f21db800bc64264bb6764c3d0d0878e9f4c4 (patch) | |
tree | d6600169624dfdcd057cfd107323e4352305aea7 /tools/iio | |
parent | 29c3035fe385b4214fc0515b9cd0ff53d23b4e82 (diff) | |
download | linux-4a00f21db800bc64264bb6764c3d0d0878e9f4c4.tar.bz2 |
drm/amd/powerplay: remove unnecessary call to memset
call to memset to assign 0 value immediately after allocating
memory with kzalloc is unnecesaary as kzalloc allocates the memory
filled with 0 value.
Semantic patch used to resolve this issue:
@@
expression e,e2; constant c;
statement S;
@@
e = kzalloc(e2, c);
if(e == NULL) S
- memset(e, 0, e2);
Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/iio')
0 files changed, 0 insertions, 0 deletions