[PATCH v2 2/3] drm/amd/powerplay: Remove useless variable

2017-10-18 Thread Georgiana Chelu
; Path to the cocci script: scripts/coccinelle/misc/returnvar.cocci Signed-off-by: Georgiana Chelu --- Changes in v2: * adjusted the subject prefix of the patches * added the cocci script used to generate the patches drivers/gpu/drm/amd/powerplay/hwmgr/vega10_processpptables.c | 3 +-- 1 file

[PATCH v2 0/3] drm/amd/powerplay: Fix coccinelle and checkpatch issues

2017-10-18 Thread Georgiana Chelu
nerate the patches Georgiana Chelu (3): drm/amd/powerplay: Don't cast kzalloc() return value drm/amd/powerplay: Remove useless variable drm/amd/powerplay: Place the constant on the right side of the test .../amd/powerplay/hwmgr/vega10_processpptables.c | 35 --

[PATCH v2 3/3] drm/amd/powerplay: Place the constant on the right side of the test

2017-10-18 Thread Georgiana Chelu
Move the constant on the right side of the comparison in order to make the code easier to read. Issue found by checkpatch script: * WARNING: Comparisons should place the constant on the right side of the test Signed-off-by: Georgiana Chelu --- Changes in v2: * adjusted the subject prefix of

[PATCH v2 1/3] drm/amd/powerplay: Don't cast kzalloc() return value

2017-10-18 Thread Georgiana Chelu
script: scripts/coccinelle/api/alloc/alloc_cast.cocci Signed-off-by: Georgiana Chelu --- Changes in v2: * adjusted the subject prefix of the patches * added the cocci script used to generate the patches .../amd/powerplay/hwmgr/vega10_processpptables.c | 24 -- 1 file changed