]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: processor idle: Use swap() instead of open coding it
authorGuo Zhengkui <guozhengkui@vivo.com>
Tue, 9 Nov 2021 07:50:51 +0000 (15:50 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 24 Nov 2021 16:46:12 +0000 (17:46 +0100)
commitf58c140436042982b522a0316cb2c15d45161018
treef8685f75f46bc5ba7351f93e4c2f2bb7c1e9f7df
parent354e7cd07b3d4467f5d82026859baeaec7af0ee5
ACPI: processor idle: Use swap() instead of open coding it

Address the following coccicheck warning:

./drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c:914:40-41:
WARNING opportunity for swap().

by using swap() for the swapping of variable values and drop
the tmp variable that is not needed any more.

Signed-off-by: Guo Zhengkui <guozhengkui@vivo.com>
[ rjw: Subject and changelog rewrite ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/processor_idle.c