OSDN Git Service

drm/amd/pm/powerplay/smumgr: use bitwise or for addition
authorDeepak R Varma <drv@mailo.com>
Sun, 15 Jan 2023 07:16:43 +0000 (12:46 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Jan 2023 21:11:51 +0000 (16:11 -0500)
commit4e1855026685a12331cfca3b5002a8133dc82a45
tree8bf31d77968e51a60eedad792b051dac27dfe5c8
parent29f5be8dcc73c19de9a27ff21f044c4d7942abe6
drm/amd/pm/powerplay/smumgr: use bitwise or for addition

For bit mask addition, it is recommended to use or operator "|" instead
of numerical addition as the former is quicker and cleaner. Change
suggested by orplus.cocci Coccinelle semantic patch.

Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Deepak R Varma <drv@mailo.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/powerplay/smumgr/iceland_smumgr.c
drivers/gpu/drm/amd/pm/powerplay/smumgr/tonga_smumgr.c