;
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
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 --
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
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